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:
@@ -54,11 +54,10 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
PascalFileEntry entry;
|
||||
Errno error = GetFileEntry(path, out entry);
|
||||
|
||||
if(error == Errno.NoError)
|
||||
{
|
||||
attributes = new FileAttributes();
|
||||
attributes = FileAttributes.File;
|
||||
}
|
||||
if(error != Errno.NoError) return error;
|
||||
|
||||
attributes = new FileAttributes();
|
||||
attributes = FileAttributes.File;
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user