diff options
| author | Bond_009 <bond.009@outlook.com> | 2022-01-22 15:40:05 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2022-02-14 14:46:04 +0100 |
| commit | 1c14c86b20f695f7344f72d7c1c67ea4334f81f4 (patch) | |
| tree | 3dc36495db05ba6e90cb518e5410644e75635fd5 /Jellyfin.Api/Controllers/SearchController.cs | |
| parent | 68e7072698dafe7df1bd272df331c2ccc8134391 (diff) | |
Fix some warnings
Diffstat (limited to 'Jellyfin.Api/Controllers/SearchController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SearchController.cs | 6 |
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> |
