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

@@ -758,13 +758,11 @@ public sealed partial class BlindWrite4
// Any non first track is audio
audio |= bwTrack.Sequence != 1 && bwTrack.Type == CommonTypes.Enums.TrackType.Audio;
switch(bwTrack.Type)
{
case CommonTypes.Enums.TrackType.CdMode2Formless:
mode2 = true;
break;
}
mode2 = bwTrack.Type switch
{
CommonTypes.Enums.TrackType.CdMode2Formless => true,
_ => mode2
};
}
if(!data &&