Join local variable declaration and assignment.

This commit is contained in:
2022-11-13 20:27:32 +00:00
parent 0f94c5fc01
commit 6586721321
22 changed files with 107 additions and 137 deletions

View File

@@ -78,10 +78,9 @@ public sealed class ViewSectorViewModel : ViewModelBase
this.RaiseAndSetIfChanged(ref _sectorNumber, value);
byte[] sector;
ErrorNumber errno;
errno = LongSectorChecked ? _inputFormat.ReadSectorLong((ulong)SectorNumber, out sector)
: _inputFormat.ReadSector((ulong)SectorNumber, out sector);
ErrorNumber errno = LongSectorChecked ? _inputFormat.ReadSectorLong((ulong)SectorNumber, out sector)
: _inputFormat.ReadSector((ulong)SectorNumber, out sector);
if(errno == ErrorNumber.NoError)
PrintHexText = PrintHex.ByteArrayToHexArrayString(sector, HEX_COLUMNS);