[Refactor] Use collection expression.

This commit is contained in:
2025-11-24 03:08:01 +00:00
parent 22aa9b3538
commit d29afd403a
79 changed files with 544 additions and 914 deletions

View File

@@ -47,11 +47,7 @@ public sealed partial class AppleDOS
if(!_mounted) return ErrorNumber.AccessDenied;
string[] pathElements = path.Split(new[]
{
'/'
},
StringSplitOptions.RemoveEmptyEntries);
string[] pathElements = path.Split(['/'], StringSplitOptions.RemoveEmptyEntries);
if(pathElements.Length != 1) return ErrorNumber.NotSupported;
@@ -82,11 +78,7 @@ public sealed partial class AppleDOS
{
if(!_mounted) return ErrorNumber.AccessDenied;
string[] pathElements = path.Split(new[]
{
'/'
},
StringSplitOptions.RemoveEmptyEntries);
string[] pathElements = path.Split(['/'], StringSplitOptions.RemoveEmptyEntries);
if(pathElements.Length != 1) return ErrorNumber.NotSupported;