Convert to switch expression.

This commit is contained in:
2022-11-13 19:59:24 +00:00
parent c5b34ee3d9
commit fca57318f5
58 changed files with 1434 additions and 2456 deletions

View File

@@ -302,17 +302,12 @@ public sealed class AppleHFSPlus : IFilesystem
XmlFsType.ModificationDateSpecified = true;
}
switch(vh.signature)
{
case 0x482B:
XmlFsType.Type = "HFS+";
break;
case 0x4858:
XmlFsType.Type = "HFSX";
break;
}
XmlFsType.Type = vh.signature switch
{
0x482B => "HFS+",
0x4858 => "HFSX",
_ => XmlFsType.Type
};
if(vh.drFndrInfo6 != 0 &&
vh.drFndrInfo7 != 0)