mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-30 04:34:49 +03: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