mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Call AddRange instead of Add.
This commit is contained in:
@@ -439,7 +439,7 @@ partial class Dump
|
||||
{
|
||||
outputOptical.SetTracks(tracks.ToList());
|
||||
|
||||
foreach(ulong newPregapSector in newPregapSectors) _resume.BadBlocks.Add(newPregapSector);
|
||||
_resume.BadBlocks.AddRange(newPregapSectors);
|
||||
|
||||
if(i >= blocksToRead)
|
||||
i -= blocksToRead;
|
||||
|
||||
@@ -844,8 +844,7 @@ partial class Dump
|
||||
{
|
||||
(outputFormat as IWritableOpticalImage).SetTracks(tracks.ToList());
|
||||
|
||||
foreach(ulong newPregapSector in newPregapSectors)
|
||||
_resume.BadBlocks.Add(newPregapSector);
|
||||
_resume.BadBlocks.AddRange(newPregapSectors);
|
||||
|
||||
if(i >= blocksToRead)
|
||||
i -= blocksToRead;
|
||||
@@ -1109,7 +1108,7 @@ partial class Dump
|
||||
{
|
||||
(outputFormat as IWritableOpticalImage).SetTracks(tracks.ToList());
|
||||
|
||||
foreach(ulong newPregapSector in newPregapSectors) _resume.BadBlocks.Add(newPregapSector);
|
||||
_resume.BadBlocks.AddRange(newPregapSectors);
|
||||
|
||||
if(i >= blocksToRead)
|
||||
i -= blocksToRead;
|
||||
|
||||
Reference in New Issue
Block a user