REFACTOR: Invert 'if' statement to reduce nesting.

This commit is contained in:
2017-12-21 06:06:19 +00:00
parent 9cd1869d1d
commit 4d886dae25
138 changed files with 9447 additions and 9806 deletions

View File

@@ -237,7 +237,8 @@ namespace DiscImageChef.Decoders.DVD
}
// ECMA-330
if(dds.Groups == 1)
if(dds.Groups != 1) return dds;
{
dds.Reserved4 = (byte)((response[7] & 0x7C) >> 2);
dds.Reserved = new byte[68];
@@ -291,7 +292,8 @@ namespace DiscImageChef.Decoders.DVD
sb.AppendFormat("Group {0} has been certified by an user", i).AppendLine();
}
if(decoded.Groups == 1)
if(decoded.Groups != 1) return sb.ToString();
{
sb.AppendFormat("Disc has {0} zones", decoded.Zones).AppendLine();
sb.AppendFormat("Primary Spare Area stats at PSN {0:X}h and ends at PSN {1:X}h, inclusively",