mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Use collection expressions.
This commit is contained in:
@@ -62,7 +62,7 @@ public sealed class DragonFlyBSD : IPartition
|
||||
/// <inheritdoc />
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
partitions = new List<Partition>();
|
||||
partitions = [];
|
||||
uint nSectors = 2048 / imagePlugin.Info.SectorSize;
|
||||
|
||||
if(2048 % imagePlugin.Info.SectorSize > 0) nSectors++;
|
||||
|
||||
Reference in New Issue
Block a user