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)
|
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 =>
|
||||||
|
|||||||
@@ -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 _);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user