Merge into pattern.

This commit is contained in:
2021-08-17 18:24:01 +01:00
parent fdff1d74c9
commit 4fcaeffc85
7 changed files with 9 additions and 17 deletions

View File

@@ -324,8 +324,7 @@ namespace Aaru.Core.Devices.Dumping
DecodedSense? decSense = Sense.Decode(senseBuf);
// MEDIUM ERROR, retry with ignore error below
if(decSense.HasValue &&
decSense.Value.ASC == 0x11)
if(decSense is { ASC: 0x11 })
if(!sectorsNotEvenPartial.Contains(badSector))
sectorsNotEvenPartial.Add(badSector);
}