From 43a2ec990c0b2386a8fa4ea3db58a4da29180107 Mon Sep 17 00:00:00 2001 From: JPVenson Date: Mon, 11 Nov 2024 23:11:17 +0000 Subject: [PATCH] Refactored array usage --- .../Item/BaseItemRepository.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs index 09504a56ca..0e98851a97 100644 --- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs +++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs @@ -157,13 +157,13 @@ public sealed class BaseItemRepository( /// public IReadOnlyList GetStudioNames() { - return GetItemValueNames([ItemValueType.Studios], Array.Empty(), Array.Empty()); + return GetItemValueNames([ItemValueType.Studios], [], []); } /// public IReadOnlyList GetAllArtistNames() { - return GetItemValueNames([ItemValueType.Artist, ItemValueType.AlbumArtist], Array.Empty(), Array.Empty()); + return GetItemValueNames([ItemValueType.Artist, ItemValueType.AlbumArtist], [], []); } /// @@ -172,7 +172,7 @@ public sealed class BaseItemRepository( return GetItemValueNames( [ItemValueType.Genre], itemTypeLookup.MusicGenreTypes, - Array.Empty()); + []); } /// @@ -180,7 +180,7 @@ public sealed class BaseItemRepository( { return GetItemValueNames( [ItemValueType.Genre], - Array.Empty(), + [], itemTypeLookup.MusicGenreTypes); }