mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 11:14:25 +00:00
[Refactor] Simplify boolean comparison.
This commit is contained in:
@@ -286,7 +286,7 @@ public class PluginRegister
|
||||
}
|
||||
}
|
||||
|
||||
if(!noFilter?.Identify(path) == true)
|
||||
if(noFilter?.Identify(path) == false)
|
||||
{
|
||||
transaction.Finish();
|
||||
|
||||
|
||||
@@ -1747,7 +1747,7 @@ public sealed partial class DeviceReport
|
||||
_dev.Timeout,
|
||||
out _);
|
||||
|
||||
if(!mediaTest.CanReadC2Pointers == true)
|
||||
if(mediaTest.CanReadC2Pointers == false)
|
||||
{
|
||||
mediaTest.CanReadC2Pointers = !_dev.ReadCd(out buffer,
|
||||
out _,
|
||||
|
||||
@@ -126,22 +126,22 @@ public static partial class Decoders
|
||||
|
||||
switch(scr.Spec)
|
||||
{
|
||||
case 0 when scr.Spec3 == false && scr.Spec4 == false && scr.SpecX == 0:
|
||||
case 0 when !scr.Spec3 && !scr.Spec4 && scr.SpecX == 0:
|
||||
sb.AppendLine("\t" +
|
||||
Localization.Device_follows_SecureDigital_Physical_Layer_Specification_version_1_0x);
|
||||
|
||||
break;
|
||||
case 1 when scr.Spec3 == false && scr.Spec4 == false && scr.SpecX == 0:
|
||||
case 1 when !scr.Spec3 && !scr.Spec4 && scr.SpecX == 0:
|
||||
sb.AppendLine("\t" +
|
||||
Localization.Device_follows_SecureDigital_Physical_Layer_Specification_version_1_10);
|
||||
|
||||
break;
|
||||
case 2 when scr.Spec3 == false && scr.Spec4 == false && scr.SpecX == 0:
|
||||
case 2 when !scr.Spec3 && !scr.Spec4 && scr.SpecX == 0:
|
||||
sb.AppendLine("\t" +
|
||||
Localization.Device_follows_SecureDigital_Physical_Layer_Specification_version_2_00);
|
||||
|
||||
break;
|
||||
case 2 when scr.Spec3 && scr.Spec4 == false && scr.SpecX == 0:
|
||||
case 2 when scr.Spec3 && !scr.Spec4 && scr.SpecX == 0:
|
||||
sb.AppendLine("\t" +
|
||||
Localization.Device_follows_SecureDigital_Physical_Layer_Specification_version_3_0x);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user