aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/SearchController.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-01-22 15:40:05 +0100
committerBond_009 <bond.009@outlook.com>2022-02-14 14:46:04 +0100
commit1c14c86b20f695f7344f72d7c1c67ea4334f81f4 (patch)
tree3dc36495db05ba6e90cb518e5410644e75635fd5 /Jellyfin.Api/Controllers/SearchController.cs
parent68e7072698dafe7df1bd272df331c2ccc8134391 (diff)
Fix some warnings
Diffstat (limited to 'Jellyfin.Api/Controllers/SearchController.cs')
-rw-r--r--Jellyfin.Api/Controllers/SearchController.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Jellyfin.Api/Controllers/SearchController.cs b/Jellyfin.Api/Controllers/SearchController.cs
index 26acb4cdc..6fcd2ae40 100644
--- a/Jellyfin.Api/Controllers/SearchController.cs
+++ b/Jellyfin.Api/Controllers/SearchController.cs
@@ -121,11 +121,7 @@ namespace Jellyfin.Api.Controllers
IsSports = isSports
});
- return new SearchHintResult
- {
- TotalRecordCount = result.TotalRecordCount,
- SearchHints = result.Items.Select(GetSearchHintResult).ToArray()
- };
+ return new SearchHintResult(result.Items.Select(GetSearchHintResult).ToArray(), result.TotalRecordCount);
}
/// <summary>