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

@@ -191,11 +191,10 @@ namespace DiscImageChef.Filesystems
xmlFSType.FreeClusters = reiserSb.free_blocks;
xmlFSType.FreeClustersSpecified = true;
xmlFSType.Dirty = reiserSb.umount_state == 2;
if(reiserSb.version >= 2)
{
xmlFSType.VolumeName = CurrentEncoding.GetString(reiserSb.label);
xmlFSType.VolumeSerial = reiserSb.uuid.ToString();
}
if(reiserSb.version < 2) return;
xmlFSType.VolumeName = CurrentEncoding.GetString(reiserSb.label);
xmlFSType.VolumeSerial = reiserSb.uuid.ToString();
}
public override Errno Mount()