mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
Refactored array usage
This commit is contained in:
parent
efe5b59517
commit
43a2ec990c
@ -157,13 +157,13 @@ public sealed class BaseItemRepository(
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IReadOnlyList<string> GetStudioNames()
|
public IReadOnlyList<string> GetStudioNames()
|
||||||
{
|
{
|
||||||
return GetItemValueNames([ItemValueType.Studios], Array.Empty<string>(), Array.Empty<string>());
|
return GetItemValueNames([ItemValueType.Studios], [], []);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IReadOnlyList<string> GetAllArtistNames()
|
public IReadOnlyList<string> GetAllArtistNames()
|
||||||
{
|
{
|
||||||
return GetItemValueNames([ItemValueType.Artist, ItemValueType.AlbumArtist], Array.Empty<string>(), Array.Empty<string>());
|
return GetItemValueNames([ItemValueType.Artist, ItemValueType.AlbumArtist], [], []);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -172,7 +172,7 @@ public sealed class BaseItemRepository(
|
|||||||
return GetItemValueNames(
|
return GetItemValueNames(
|
||||||
[ItemValueType.Genre],
|
[ItemValueType.Genre],
|
||||||
itemTypeLookup.MusicGenreTypes,
|
itemTypeLookup.MusicGenreTypes,
|
||||||
Array.Empty<string>());
|
[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -180,7 +180,7 @@ public sealed class BaseItemRepository(
|
|||||||
{
|
{
|
||||||
return GetItemValueNames(
|
return GetItemValueNames(
|
||||||
[ItemValueType.Genre],
|
[ItemValueType.Genre],
|
||||||
Array.Empty<string>(),
|
[],
|
||||||
itemTypeLookup.MusicGenreTypes);
|
itemTypeLookup.MusicGenreTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user