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,13 +592,10 @@ sealed partial class Reader
if(_dev.IsOmniDriveFirmware())
{
bool omniStandardOk = !_dev.OmniDriveReadRawDvd(out _, out senseBuf, 0, 1, _timeout, out _, true, true);
if(omniStandardOk)
{
OmniDriveReadRaw = true;
}
else
{
OmniDriveReadRaw = !_dev.OmniDriveReadNintendoDvd(out _,
OmniDriveReadRaw = omniStandardOk
? true
: !_dev.OmniDriveReadNintendoDvd(out _,
out senseBuf,
0,
1,
@@ -610,7 +607,6 @@ sealed partial class Reader
false,
0);
}
}
if(HldtstReadRaw || _plextorReadRaw || ReadBuffer3CReadRaw || OmniDriveReadRaw)
{