aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/FilterService.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-04-05 13:00:35 -0400
committerPatrick Barron <barronpm@gmail.com>2020-04-05 13:00:35 -0400
commit80cfcf5643b50fd1acfdc82cae849948a39233b9 (patch)
tree35a2a05085ae086aa0c206c4261bb2f112fd98a7 /MediaBrowser.Api/FilterService.cs
parent86c06996b16ffa48a63fa364fade5c211be4f294 (diff)
Remove unnecessary casts and explicit array types
Diffstat (limited to 'MediaBrowser.Api/FilterService.cs')
-rw-r--r--MediaBrowser.Api/FilterService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/FilterService.cs b/MediaBrowser.Api/FilterService.cs
index 25f23bcd1..5eb72cdb1 100644
--- a/MediaBrowser.Api/FilterService.cs
+++ b/MediaBrowser.Api/FilterService.cs
@@ -133,7 +133,7 @@ namespace MediaBrowser.Api
// Non recursive not yet supported for library folders
if ((request.Recursive ?? true) || parentItem is UserView || parentItem is ICollectionFolder)
{
- genreQuery.AncestorIds = parentItem == null ? Array.Empty<Guid>() : new Guid[] { parentItem.Id };
+ genreQuery.AncestorIds = parentItem == null ? Array.Empty<Guid>() : new[] { parentItem.Id };
}
else
{
@@ -231,7 +231,7 @@ namespace MediaBrowser.Api
EnableTotalRecordCount = false,
DtoOptions = new Controller.Dto.DtoOptions
{
- Fields = new ItemFields[] { ItemFields.Genres, ItemFields.Tags },
+ Fields = new[] { ItemFields.Genres, ItemFields.Tags },
EnableImages = false,
EnableUserData = false
}