1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-22 22:15:17 -04:00

Use Array.Empty and fix a few multiple enumerations

(cherry picked from commit 11d91faaada0e70910c832ce405ddeed52a24172)
This commit is contained in:
Stepan Goremykin
2023-03-26 20:40:51 -07:00
committed by Bogdan
parent c987824174
commit 044de922fa
11 changed files with 28 additions and 22 deletions
@@ -111,7 +111,7 @@ namespace NzbDrone.Core.Datastore
{
if (!ids.Any())
{
return new List<TModel>();
return Array.Empty<TModel>();
}
var result = Query(x => ids.Contains(x.Id));