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:
@@ -278,13 +278,12 @@ namespace DiscImageChef.Filesystems
|
||||
DicConsole.DebugWriteLine("UDF Plugin", "anchor.reserveVolumeDescriptorSequenceExtent.location = {0}",
|
||||
anchor.reserveVolumeDescriptorSequenceExtent.location);
|
||||
|
||||
if(anchor.tag.tagIdentifier == TagIdentifier.AnchorVolumeDescriptorPointer &&
|
||||
anchor.tag.tagLocation == position &&
|
||||
anchor.mainVolumeDescriptorSequenceExtent.location + partition.Start < partition.End)
|
||||
{
|
||||
anchorFound = true;
|
||||
break;
|
||||
}
|
||||
if(anchor.tag.tagIdentifier != TagIdentifier.AnchorVolumeDescriptorPointer ||
|
||||
anchor.tag.tagLocation != position ||
|
||||
anchor.mainVolumeDescriptorSequenceExtent.location + partition.Start >= partition.End) continue;
|
||||
|
||||
anchorFound = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if(!anchorFound) return false;
|
||||
|
||||
Reference in New Issue
Block a user