diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-11-15 13:48:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-15 13:48:43 +0100 |
| commit | 7caf1662eca2ea8826f3277e8b9d5c8c782fd03d (patch) | |
| tree | 526c116a04f01a13202b575e0a923baf6c7e3a48 /Jellyfin.Api/Controllers/FilterController.cs | |
| parent | 331c7f84817ae2c6897cc60d16a5d66b27f3f187 (diff) | |
| parent | d4e568c8bf1e5312075225c5554eeffb5335fd47 (diff) | |
Merge pull request #4478 from Bond-009/chararray
Don't allocate single char arrays when possible
Diffstat (limited to 'Jellyfin.Api/Controllers/FilterController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/FilterController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/FilterController.cs b/Jellyfin.Api/Controllers/FilterController.cs index 2a567c846..008bb58d1 100644 --- a/Jellyfin.Api/Controllers/FilterController.cs +++ b/Jellyfin.Api/Controllers/FilterController.cs @@ -78,8 +78,8 @@ namespace Jellyfin.Api.Controllers var query = new InternalItemsQuery { User = user, - MediaTypes = (mediaTypes ?? string.Empty).Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries), - IncludeItemTypes = (includeItemTypes ?? string.Empty).Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries), + MediaTypes = (mediaTypes ?? string.Empty).Split(',', StringSplitOptions.RemoveEmptyEntries), + IncludeItemTypes = (includeItemTypes ?? string.Empty).Split(',', StringSplitOptions.RemoveEmptyEntries), Recursive = true, EnableTotalRecordCount = false, DtoOptions = new DtoOptions @@ -168,7 +168,7 @@ namespace Jellyfin.Api.Controllers var genreQuery = new InternalItemsQuery(user) { IncludeItemTypes = - (includeItemTypes ?? string.Empty).Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries), + (includeItemTypes ?? string.Empty).Split(',', StringSplitOptions.RemoveEmptyEntries), DtoOptions = new DtoOptions { Fields = Array.Empty<ItemFields>(), |
