Use merge pattern.

This commit is contained in:
2022-03-16 11:47:00 +00:00
parent 5f14f0e79c
commit ff65da6c48
115 changed files with 4810 additions and 5220 deletions

View File

@@ -198,8 +198,7 @@ public sealed partial class LisaFS
!_debug)
return ErrorNumber.AccessDenied;
if(fileId > 4 ||
fileId <= 0)
if(fileId is > 4 or <= 0)
if(fileId != FILEID_BOOT_SIGNED &&
fileId != FILEID_LOADER_SIGNED)
return ErrorNumber.InvalidArgument;