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)
return false;
byte[] sector;
var anchor = new AnchorVolumeDescriptorPointer();
// All positions where anchor may reside, with the ratio between 512 and 2048bps
@@ -69,9 +68,9 @@ public sealed partial class UDF
new ulong[] { partition.End - 1024, 4 }, new ulong[] { partition.End - 4, 4 }
};
var anchorFound = false;
uint ratio = 1;
sector = null;
var anchorFound = false;
uint ratio = 1;
byte[] sector = null;
foreach(ulong[] position in from position in
positions.Where(position =>

View File

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