aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/Plugins/AudioDb/AudioDbArtistImageProvider.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2023-03-01 00:44:57 +0100
committerBond_009 <bond.009@outlook.com>2023-03-01 00:44:57 +0100
commit4b01aaa0f7c52557d1500daaae2bc457a56dbffe (patch)
treececc037dcc70dede2f82dd886a34913e3048687b /MediaBrowser.Providers/Plugins/AudioDb/AudioDbArtistImageProvider.cs
parent54cd3e6d551d797bace33d65334cf1e98669676d (diff)
Allocate less Lists
Diffstat (limited to 'MediaBrowser.Providers/Plugins/AudioDb/AudioDbArtistImageProvider.cs')
-rw-r--r--MediaBrowser.Providers/Plugins/AudioDb/AudioDbArtistImageProvider.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Providers/Plugins/AudioDb/AudioDbArtistImageProvider.cs b/MediaBrowser.Providers/Plugins/AudioDb/AudioDbArtistImageProvider.cs
index b1a285a96..2232dfa0d 100644
--- a/MediaBrowser.Providers/Plugins/AudioDb/AudioDbArtistImageProvider.cs
+++ b/MediaBrowser.Providers/Plugins/AudioDb/AudioDbArtistImageProvider.cs
@@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.IO;
+using System.Linq;
using System.Net.Http;
using System.Text.Json;
using System.Threading;
@@ -42,7 +43,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
/// <inheritdoc />
public IEnumerable<ImageType> GetSupportedImages(BaseItem item)
{
- return new List<ImageType>
+ return new ImageType[]
{
ImageType.Primary,
ImageType.Logo,
@@ -74,7 +75,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
}
}
- return new List<RemoteImageInfo>();
+ return Enumerable.Empty<RemoteImageInfo>();
}
private IEnumerable<RemoteImageInfo> GetImages(AudioDbArtistProvider.Artist item)