Join declarations and assignments.

This commit is contained in:
2023-10-04 08:44:14 +01:00
parent 490d4a48c9
commit 8b9d4408ea
2 changed files with 6 additions and 8 deletions

View File

@@ -58,7 +58,6 @@ public sealed partial class UDF
if(imagePlugin.Info.SectorSize < 512) if(imagePlugin.Info.SectorSize < 512)
return false; return false;
byte[] sector;
var anchor = new AnchorVolumeDescriptorPointer(); var anchor = new AnchorVolumeDescriptorPointer();
// All positions where anchor may reside, with the ratio between 512 and 2048bps // All positions where anchor may reside, with the ratio between 512 and 2048bps
@@ -71,7 +70,7 @@ public sealed partial class UDF
var anchorFound = false; var anchorFound = false;
uint ratio = 1; uint ratio = 1;
sector = null; byte[] sector = null;
foreach(ulong[] position in from position in foreach(ulong[] position in from position in
positions.Where(position => positions.Where(position =>

View File

@@ -340,9 +340,8 @@ public abstract class ReadOnlyFilesystemTest : FilesystemTest
{ {
byte[] buffer = Array.Empty<byte>(); byte[] buffer = Array.Empty<byte>();
ErrorNumber ret = fs.GetXattr(path, xattr, ref buffer); ErrorNumber ret = fs.GetXattr(path, xattr, ref buffer);
string data;
data = ret != ErrorNumber.NoError && ret != ErrorNumber.OutOfRange string data = ret != ErrorNumber.NoError && ret != ErrorNumber.OutOfRange
? Md5Context.Data(Array.Empty<byte>(), out _) ? Md5Context.Data(Array.Empty<byte>(), out _)
: Md5Context.Data(buffer, out _); : Md5Context.Data(buffer, out _);