More efficient array creation (#11468)

This commit is contained in:
Bond-009 authored and GitHub committed 2024-04-30 13:32:59 -06:00
1 parent 5dc6bb4910
commit 3feb3f81bf
25 files changed
+55 -131

No files matched your search

@@ -117,9 +117,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
var artist = reader.ReadNormalizedString();
if (!string.IsNullOrEmpty(artist) && item is MusicVideo artistVideo)
{
var list = artistVideo.Artists.ToList();
list.Add(artist);
artistVideo.Artists = list.ToArray();
artistVideo.Artists = [..artistVideo.Artists, artist];
}
break;