Remove custom ToArray extension

This commit is contained in:
Bond_009
2018-12-28 16:48:26 +01:00
parent a86b71899e
commit 6e5d2aadaa
59 changed files with 137 additions and 178 deletions

View File

@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using MediaBrowser.Model.Extensions;
namespace MediaBrowser.Controller.Entities
{
@@ -24,10 +22,7 @@ namespace MediaBrowser.Controller.Entities
}
else
{
var list = current.ToArray(current.Length + 1);
list[list.Length - 1] = name;
item.Tags = list;
item.Tags = current.Concat(new [] { name }).ToArray();
}
}
}