REFACTOR: Loop can be converted into LINQ-expression.

This commit is contained in:
2017-12-21 07:08:26 +00:00
parent 4d886dae25
commit 5592f147ac
71 changed files with 668 additions and 1131 deletions

View File

@@ -152,9 +152,9 @@ namespace DiscImageChef.Commands
else if(checkStatus == true && tempStatus == true) checkStatus = true;
else checkStatus = null;
foreach(ulong failLba in tempfailingLbas) failingLbas.Add(failLba);
failingLbas.AddRange(tempfailingLbas);
foreach(ulong unknownLba in tempunknownLbas) unknownLbas.Add(unknownLba);
unknownLbas.AddRange(tempunknownLbas);
if(remainingSectors < 512)
{
@@ -199,9 +199,9 @@ namespace DiscImageChef.Commands
else if(checkStatus == true && tempStatus == true) checkStatus = true;
else checkStatus = null;
foreach(ulong failLba in tempfailingLbas) failingLbas.Add(failLba);
failingLbas.AddRange(tempfailingLbas);
foreach(ulong unknownLba in tempunknownLbas) unknownLbas.Add(unknownLba);
unknownLbas.AddRange(tempunknownLbas);
if(remainingSectors < 512)
{