mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Invert 'if' statement to reduce nesting.
This commit is contained in:
@@ -110,12 +110,11 @@ namespace DiscImageChef.Decoders.SCSI
|
||||
if(page.DVW) sb.AppendLine("\tVerifying after writing is disabled");
|
||||
if(page.DDE) sb.AppendLine("\tDrive will abort when a writing error is detected");
|
||||
|
||||
if(page.SLM)
|
||||
{
|
||||
sb.Append("\tDrive has two LUNs with rewritable being ");
|
||||
if(page.SLM) sb.AppendLine("LUN 1");
|
||||
else sb.AppendLine("LUN 0");
|
||||
}
|
||||
if(!page.SLM) return sb.ToString();
|
||||
|
||||
sb.Append("\tDrive has two LUNs with rewritable being ");
|
||||
if(page.SLM) sb.AppendLine("LUN 1");
|
||||
else sb.AppendLine("LUN 0");
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user