aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/FilterService.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-04-11 19:30:23 +0200
committerGitHub <noreply@github.com>2020-04-11 19:30:23 +0200
commit14674d446954b24c9754431f550c590083e7a94c (patch)
treefc766140d5d96d63a512a1b962fd86e0ba91d161 /MediaBrowser.Api/FilterService.cs
parent299541f1b26136ef89741f28c7949cda4e5e485f (diff)
parent555651aae23e788b10760d58840114d8a010da90 (diff)
Merge pull request #2772 from barronpm/codecleanup
MediaBrowser.Api code cleanup
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
}