mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Join declarations and assignments.
This commit is contained in:
@@ -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 =>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user