mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Merge null/pattern checks into complex pattern.
This commit is contained in:
@@ -37,7 +37,6 @@ using System.Collections.ObjectModel;
|
||||
using System.Globalization;
|
||||
using System.Reactive;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.Console;
|
||||
using Aaru.Core;
|
||||
@@ -302,9 +301,7 @@ public sealed class ImageEntropyViewModel : ViewModelBase
|
||||
StopVisible = false;
|
||||
ProgressVisible = true;
|
||||
|
||||
if(WholeDiscChecked &&
|
||||
_inputFormat is IOpticalMediaImage opticalFormat &&
|
||||
opticalFormat.Sessions?.Count > 1)
|
||||
if(WholeDiscChecked && _inputFormat is IOpticalMediaImage { Sessions.Count: > 1 })
|
||||
{
|
||||
AaruConsole.ErrorWriteLine("Calculating disc entropy of multisession images is not yet implemented.");
|
||||
WholeDiscChecked = false;
|
||||
|
||||
Reference in New Issue
Block a user