Fixed: Use Array.Empty and fix a few multiple enumerations

(cherry picked from commit 11d91faaada0e70910c832ce405ddeed52a24172)
This commit is contained in:
Bogdan
2023-04-14 07:39:20 +03:00
parent a9e1204a9b
commit d667c7d853
11 changed files with 30 additions and 23 deletions

View File

@@ -103,7 +103,7 @@ namespace NzbDrone.Core.Datastore
{
if (!ids.Any())
{
return new List<TModel>();
return Array.Empty<TModel>();
}
var result = Query(x => ids.Contains(x.Id));