mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-21 22:05:38 -04:00
Use Array.Empty and fix a few multiple enumerations
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user