Use Array.Empty and fix a few multiple enumerations (#14194)

This commit is contained in:
Stepan Goremykin
2023-04-02 08:57:30 -07:00
committed by GitHub
parent 37f68715f9
commit 97c4a976c7
15 changed files with 37 additions and 36 deletions

View File

@@ -14,7 +14,7 @@ namespace Jackett.Test.TestHelpers
public List<ReleaseInfo> Search(IIndexer indexer, TorznabQuery query) => null;
public List<TrackerCacheResult> GetCachedResults() => new List<TrackerCacheResult>();
public IReadOnlyList<TrackerCacheResult> GetCachedResults() => Array.Empty<TrackerCacheResult>();
public void CleanIndexerCache(IIndexer indexer)
{