mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Code refactor and styling.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user