Convert into '?:' expression.

This commit is contained in:
2022-11-14 01:27:11 +00:00
parent 2b40eab0d2
commit ad2d0b8a24
7 changed files with 12 additions and 27 deletions

View File

@@ -237,10 +237,9 @@ public partial class Device
Error = LastError != 0;
if(transferLength > 1)
AaruConsole.DebugWriteLine("MMC Device", "READ_MULTIPLE_BLOCK took {0} ms.", duration);
else
AaruConsole.DebugWriteLine("MMC Device", "READ_SINGLE_BLOCK took {0} ms.", duration);
AaruConsole.DebugWriteLine("MMC Device",
transferLength > 1 ? "READ_MULTIPLE_BLOCK took {0} ms."
: "READ_SINGLE_BLOCK took {0} ms.", duration);
return sense;
}