mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 03:04:26 +00:00
[Refactor] Use null propagation.
This commit is contained in:
@@ -153,7 +153,7 @@ public class DeviceDto : DeviceReport
|
||||
{
|
||||
SCSI.MultiMediaDevice.ModeSense2AData = null;
|
||||
|
||||
if(SCSI.MultiMediaDevice.Features != null) SCSI.MultiMediaDevice.Features.BinaryData = null;
|
||||
SCSI.MultiMediaDevice.Features?.BinaryData = null;
|
||||
|
||||
if(SCSI.MultiMediaDevice.TestedMedia != null)
|
||||
{
|
||||
@@ -167,7 +167,7 @@ public class DeviceDto : DeviceReport
|
||||
SCSI.SequentialDevice = null;
|
||||
}
|
||||
|
||||
if(USB != null) USB.Descriptors = null;
|
||||
USB?.Descriptors = null;
|
||||
|
||||
Id = id;
|
||||
OptimalMultipleSectorsRead = optimalMultipleSectorsRead;
|
||||
|
||||
@@ -464,11 +464,11 @@ public class HexViewPanel : UserControl
|
||||
|
||||
private void OnOffsetHeaderChanged()
|
||||
{
|
||||
if(_offsetHeaderText != null) _offsetHeaderText.Text = OffsetHeader;
|
||||
_offsetHeaderText?.Text = OffsetHeader;
|
||||
}
|
||||
|
||||
private void OnAsciiHeaderChanged()
|
||||
{
|
||||
if(_asciiHeaderText != null) _asciiHeaderText.Text = AsciiHeader;
|
||||
_asciiHeaderText?.Text = AsciiHeader;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user