mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Expression is always 'true' or always 'false'.
This commit is contained in:
@@ -159,7 +159,7 @@ namespace DiscImageChef.Devices
|
||||
|
||||
DicConsole.DebugWriteLine("SCSI Device", "KREON GET FEATURE LIST took {0} ms.", duration);
|
||||
|
||||
if(sense) return sense;
|
||||
if(sense) return true;
|
||||
|
||||
if(buffer[0] != 0xA5 || buffer[1] != 0x5A || buffer[2] != 0x5A || buffer[3] != 0xA5) return true;
|
||||
|
||||
|
||||
@@ -240,7 +240,7 @@ namespace DiscImageChef.Devices
|
||||
max = BigEndianBitConverter.ToUInt16(buf, 6);
|
||||
last = BigEndianBitConverter.ToUInt16(buf, 8);
|
||||
|
||||
return sense;
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -279,7 +279,7 @@ namespace DiscImageChef.Devices
|
||||
enabled = buf[2] != 0;
|
||||
speed = BigEndianBitConverter.ToUInt16(buf, 4);
|
||||
|
||||
return sense;
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user