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:
@@ -103,17 +103,15 @@ namespace DiscImageChef.Filesystems.AppleDOS
|
||||
return Errno.NoError;
|
||||
}
|
||||
|
||||
if(string.Compare(xattr, "com.apple.dos.tracksectorlist", StringComparison.InvariantCulture) == 0 && debug)
|
||||
{
|
||||
byte[] ts;
|
||||
if(!extentCache.TryGetValue(filename, out ts)) return Errno.InvalidArgument;
|
||||
if(string.Compare(xattr, "com.apple.dos.tracksectorlist", StringComparison.InvariantCulture) != 0 || !debug)
|
||||
return Errno.NoSuchExtendedAttribute;
|
||||
|
||||
buf = new byte[ts.Length];
|
||||
Array.Copy(ts, 0, buf, 0, buf.Length);
|
||||
return Errno.NoError;
|
||||
}
|
||||
byte[] ts;
|
||||
if(!extentCache.TryGetValue(filename, out ts)) return Errno.InvalidArgument;
|
||||
|
||||
return Errno.NoSuchExtendedAttribute;
|
||||
buf = new byte[ts.Length];
|
||||
Array.Copy(ts, 0, buf, 0, buf.Length);
|
||||
return Errno.NoError;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user