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:
@@ -91,15 +91,11 @@ partial class Dump
|
||||
|
||||
if(opticalDisc)
|
||||
{
|
||||
switch(dskType)
|
||||
{
|
||||
case MediaType.REV35:
|
||||
case MediaType.REV70:
|
||||
case MediaType.REV120:
|
||||
opticalDisc = false;
|
||||
|
||||
break;
|
||||
}
|
||||
opticalDisc = dskType switch
|
||||
{
|
||||
MediaType.REV35 or MediaType.REV70 or MediaType.REV120 => false,
|
||||
_ => opticalDisc
|
||||
};
|
||||
}
|
||||
|
||||
_dumpLog.WriteLine(Localization.Core.Initializing_reader);
|
||||
|
||||
Reference in New Issue
Block a user