mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
Use Array.Empty
This commit is contained in:
@@ -1008,7 +1008,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
var artist = FFProbeHelpers.GetDictionaryValue(tags, "artist");
|
||||
if (string.IsNullOrWhiteSpace(artist))
|
||||
{
|
||||
audio.Artists = new string[] { };
|
||||
audio.Artists = Array.Empty<string>();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1031,7 +1031,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
|
||||
if (string.IsNullOrWhiteSpace(albumArtist))
|
||||
{
|
||||
audio.AlbumArtists = new string[] { };
|
||||
audio.AlbumArtists = Array.Empty<string>();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user