Minor improvements

OFC I reduced some allocations
This commit is contained in:
Bond_009
2020-08-03 20:32:45 +02:00
parent 5b4863c65b
commit 2b355c36ff
7 changed files with 41 additions and 37 deletions

View File

@@ -233,7 +233,7 @@ namespace MediaBrowser.Model.Entities
if (!string.IsNullOrEmpty(Title))
{
var result = new StringBuilder(Title);
var result = new StringBuilder(Title);
foreach (var tag in attributes)
{
// Keep Tags that are not already in Title.
@@ -246,7 +246,7 @@ namespace MediaBrowser.Model.Entities
return result.ToString();
}
return string.Join(" - ", attributes.ToArray());
return string.Join(" - ", attributes);
}
default: