mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 21:38:27 +01:00
More efficient array creation (#11468)
This commit is contained in:
@@ -21,11 +21,11 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
if (current.Length == 0)
|
||||
{
|
||||
item.Tags = new[] { name };
|
||||
item.Tags = [name];
|
||||
}
|
||||
else
|
||||
{
|
||||
item.Tags = current.Concat(new[] { name }).ToArray();
|
||||
item.Tags = [..current, name];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user