mirror of
https://github.com/aaru-dps/Aaru.Decryption.git
synced 2025-12-16 19:24:33 +00:00
Invert 'if' statements to reduce nesting.
This commit is contained in:
20
DVD/Dump.cs
20
DVD/Dump.cs
@@ -372,12 +372,12 @@ public sealed class Dump
|
||||
case CopyrightType.CPRM: throw new NotImplementedException();
|
||||
}
|
||||
|
||||
if(!sense)
|
||||
{
|
||||
Agid = (byte)(buffer[7] >> 6);
|
||||
if(sense)
|
||||
continue;
|
||||
|
||||
break;
|
||||
}
|
||||
Agid = (byte)(buffer[7] >> 6);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if(sense)
|
||||
@@ -411,12 +411,12 @@ public sealed class Dump
|
||||
break;
|
||||
}
|
||||
|
||||
if(i >= 31)
|
||||
{
|
||||
senseBuffer = Array.Empty<byte>();
|
||||
if(i < 31)
|
||||
continue;
|
||||
|
||||
return true;
|
||||
}
|
||||
senseBuffer = Array.Empty<byte>();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
sense = ReportChallenge(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, timeout, out duration);
|
||||
|
||||
Reference in New Issue
Block a user