mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-07-08 18:16:24 +00:00
Use ternary
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5ac8231b6a
commit
666ae17ebd
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user