mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Replace if statement with null-propagating code.
This commit is contained in:
@@ -105,11 +105,9 @@ namespace DiscImageChef.Decoders.SCSI
|
||||
|
||||
public static ModePage_03? DecodeModePage_03(byte[] pageResponse)
|
||||
{
|
||||
if(pageResponse == null) return null;
|
||||
if((pageResponse?[0] & 0x40) == 0x40) return null;
|
||||
|
||||
if((pageResponse[0] & 0x40) == 0x40) return null;
|
||||
|
||||
if((pageResponse[0] & 0x3F) != 0x03) return null;
|
||||
if((pageResponse?[0] & 0x3F) != 0x03) return null;
|
||||
|
||||
if(pageResponse[1] + 2 != pageResponse.Length) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user