Use Array.Empty

This commit is contained in:
Patrick Barron
2020-07-04 11:54:25 -04:00
parent 176f25fb98
commit 6d1b00da64
20 changed files with 33 additions and 27 deletions

View File

@@ -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
{