Use ternary

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
Rebecca Wallander
2026-05-01 10:46:11 +02:00
committed by GitHub
parent 5ac8231b6a
commit 666ae17ebd

View File

@@ -592,24 +592,20 @@ sealed partial class Reader
if(_dev.IsOmniDriveFirmware()) if(_dev.IsOmniDriveFirmware())
{ {
bool omniStandardOk = !_dev.OmniDriveReadRawDvd(out _, out senseBuf, 0, 1, _timeout, out _, true, true); bool omniStandardOk = !_dev.OmniDriveReadRawDvd(out _, out senseBuf, 0, 1, _timeout, out _, true, true);
if(omniStandardOk)
{ OmniDriveReadRaw = omniStandardOk
OmniDriveReadRaw = true; ? true
} : !_dev.OmniDriveReadNintendoDvd(out _,
else out senseBuf,
{ 0,
OmniDriveReadRaw = !_dev.OmniDriveReadNintendoDvd(out _, 1,
out senseBuf, _timeout,
0, out _,
1, true,
_timeout, true,
out _, null,
true, false,
true, 0);
null,
false,
0);
}
} }
if(HldtstReadRaw || _plextorReadRaw || ReadBuffer3CReadRaw || OmniDriveReadRaw) if(HldtstReadRaw || _plextorReadRaw || ReadBuffer3CReadRaw || OmniDriveReadRaw)