mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Convert to switch expressions.
This commit is contained in:
@@ -398,18 +398,11 @@ sealed partial class Dump
|
||||
break;
|
||||
}
|
||||
|
||||
switch(desiredSubchannel)
|
||||
{
|
||||
case MmcSubchannel.None:
|
||||
subType = TrackSubchannelType.None;
|
||||
|
||||
break;
|
||||
case MmcSubchannel.Raw:
|
||||
case MmcSubchannel.Q16:
|
||||
subType = TrackSubchannelType.Raw;
|
||||
|
||||
break;
|
||||
}
|
||||
subType = desiredSubchannel switch
|
||||
{
|
||||
MmcSubchannel.None => TrackSubchannelType.None,
|
||||
MmcSubchannel.Raw or MmcSubchannel.Q16 => TrackSubchannelType.Raw
|
||||
};
|
||||
|
||||
blockSize = sectorSize + subSize;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user