aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/BaseApiService.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-02-27 17:29:12 +0300
committerGitHub <noreply@github.com>2019-02-27 17:29:12 +0300
commit8c2af50170ea2a7964a6ad40bbe60026cfa625b0 (patch)
tree8cf813cc47dbc9c9fcc661fa0ba732022860a89b /MediaBrowser.Api/BaseApiService.cs
parent9651a78b0c42958f01b01aee78e661125ad1970d (diff)
parent1731bf7372a13ea8c656eb9f895508b7b4c66784 (diff)
Merge pull request #1011 from Bond-009/order
Don't try to order the response the same as the request
Diffstat (limited to 'MediaBrowser.Api/BaseApiService.cs')
-rw-r--r--MediaBrowser.Api/BaseApiService.cs13
1 files changed, 3 insertions, 10 deletions
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs
index a037357ed..69673a49c 100644
--- a/MediaBrowser.Api/BaseApiService.cs
+++ b/MediaBrowser.Api/BaseApiService.cs
@@ -172,16 +172,9 @@ namespace MediaBrowser.Api
if (!string.IsNullOrWhiteSpace(hasDtoOptions.EnableImageTypes))
{
- if (string.IsNullOrEmpty(hasDtoOptions.EnableImageTypes))
- {
- options.ImageTypes = Array.Empty<ImageType>();
- }
- else
- {
- options.ImageTypes = hasDtoOptions.EnableImageTypes.Split(new [] { ',' }, StringSplitOptions.RemoveEmptyEntries)
- .Select(v => (ImageType)Enum.Parse(typeof(ImageType), v, true))
- .ToArray();
- }
+ options.ImageTypes = hasDtoOptions.EnableImageTypes.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
+ .Select(v => (ImageType)Enum.Parse(typeof(ImageType), v, true))
+ .ToArray();
}
}