mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Loop can be converted into LINQ-expression.
This commit is contained in:
@@ -245,10 +245,7 @@ namespace DiscImageChef.Filesystems
|
||||
ulong[] positions = {256, 512, partition.End - 256, partition.End};
|
||||
bool anchorFound = false;
|
||||
|
||||
foreach(ulong position in positions)
|
||||
{
|
||||
if(position + partition.Start >= partition.End) continue;
|
||||
|
||||
foreach(ulong position in positions.Where(position => position + partition.Start < partition.End)) {
|
||||
sector = imagePlugin.ReadSector(position);
|
||||
anchor = new AnchorVolumeDescriptorPointer();
|
||||
IntPtr anchorPtr = Marshal.AllocHGlobal(Marshal.SizeOf(anchor));
|
||||
|
||||
Reference in New Issue
Block a user