diff options
| author | Bond_009 <Bond.009@outlook.com> | 2020-08-03 20:32:45 +0200 |
|---|---|---|
| committer | Bond_009 <Bond.009@outlook.com> | 2020-08-03 20:32:45 +0200 |
| commit | 2b355c36ff8328f962f607df4aa305e53f2e003e (patch) | |
| tree | e673738b888af4524f1c473a653ab208e5e31d0e /MediaBrowser.Model/Entities | |
| parent | 5b4863c65b777d178f6573a8a584e2e9bac0d156 (diff) | |
Minor improvements
OFC I reduced some allocations
Diffstat (limited to 'MediaBrowser.Model/Entities')
| -rw-r--r-- | MediaBrowser.Model/Entities/MediaStream.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index 1b37cfc93..f9ec0d238 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -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: |
