mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 22:08:27 +01:00
Remove custom ToArray extension
This commit is contained in:
@@ -208,7 +208,7 @@ namespace Emby.Server.Implementations.Playlists
|
||||
|
||||
var newList = playlist.LinkedChildren.ToList();
|
||||
newList.AddRange(list);
|
||||
playlist.LinkedChildren = newList.ToArray(newList.Count);
|
||||
playlist.LinkedChildren = newList.ToArray();
|
||||
|
||||
playlist.UpdateToRepository(ItemUpdateType.MetadataEdit, CancellationToken.None);
|
||||
|
||||
@@ -290,7 +290,7 @@ namespace Emby.Server.Implementations.Playlists
|
||||
newList.Insert(newIndex, item);
|
||||
}
|
||||
|
||||
playlist.LinkedChildren = newList.ToArray(newList.Count);
|
||||
playlist.LinkedChildren = newList.ToArray();
|
||||
|
||||
playlist.UpdateToRepository(ItemUpdateType.MetadataEdit, CancellationToken.None);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user