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:
@@ -261,14 +261,12 @@ namespace DiscImageChef.DiscImages
|
||||
#region Unsupported features
|
||||
public override byte[] ReadDiskTag(MediaTagType tag)
|
||||
{
|
||||
if(ImageInfo.ReadableMediaTags.Contains(tag) && tag == MediaTagType.ATA_IDENTIFY)
|
||||
{
|
||||
byte[] buffer = new byte[512];
|
||||
Array.Copy(identify, 0, buffer, 0, 512);
|
||||
return buffer;
|
||||
}
|
||||
if(!ImageInfo.ReadableMediaTags.Contains(tag) || tag != MediaTagType.ATA_IDENTIFY)
|
||||
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
||||
|
||||
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
||||
byte[] buffer = new byte[512];
|
||||
Array.Copy(identify, 0, buffer, 0, 512);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
public override byte[] ReadSectorTag(ulong sectorAddress, SectorTagType tag)
|
||||
|
||||
Reference in New Issue
Block a user