Code refactor and styling.

This commit is contained in:
2020-12-03 03:47:07 +00:00
parent f1944b3863
commit 55bc0ac317
71 changed files with 500 additions and 722 deletions

View File

@@ -450,13 +450,12 @@ namespace Aaru.Server.Task
modifiedOffsets++;
}
foreach(Device device in ctx.
Devices.
Where(d => d.Manufacturer == null && d.Model != null &&
d.Model.Trim() == model).
Union(ctx.Devices.Where(d => d.Manufacturer != null &&
d.Manufacturer.Trim() == manufacturer &&
d.Model != null && d.Model == model)))
foreach(Device device in ctx.Devices.
Where(d => d.Manufacturer == null && d.Model != null &&
d.Model.Trim() == model).
Union(ctx.Devices.Where(d => d.Manufacturer != null &&
d.Manufacturer.Trim() == manufacturer &&
d.Model != null && d.Model == model)))
{
if(device.CdOffset == cdOffset &&
device.ModifiedWhen == cdOffset.ModifiedWhen)