mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
Use Array.Empty
This commit is contained in:
@@ -41,7 +41,7 @@ namespace MediaBrowser.MediaEncoding.BdInfo
|
||||
|
||||
var outputStream = new BlurayDiscInfo
|
||||
{
|
||||
MediaStreams = new MediaStream[] { }
|
||||
MediaStreams = Array.Empty<MediaStream>()
|
||||
};
|
||||
|
||||
if (playlist == null)
|
||||
|
||||
@@ -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