diff options
| author | David <daullmer@gmail.com> | 2020-06-14 12:48:17 +0200 |
|---|---|---|
| committer | David <daullmer@gmail.com> | 2020-06-14 12:48:17 +0200 |
| commit | 9bedd9ac3ca5b5854acd6891e746bf2e7225ff21 (patch) | |
| tree | 5c30410be03df839661582cfe615538656149363 /Emby.Server.Implementations/Services/RequestHelper.cs | |
| parent | 043d76bd6e9e4a2e1093ae0e5ba025de1438b528 (diff) | |
| parent | 0011e8df47380936742302ef40639a4626a780ed (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-204
Diffstat (limited to 'Emby.Server.Implementations/Services/RequestHelper.cs')
| -rw-r--r-- | Emby.Server.Implementations/Services/RequestHelper.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Services/RequestHelper.cs b/Emby.Server.Implementations/Services/RequestHelper.cs index 2563cac99..1f9c7fc22 100644 --- a/Emby.Server.Implementations/Services/RequestHelper.cs +++ b/Emby.Server.Implementations/Services/RequestHelper.cs @@ -1,3 +1,5 @@ +#pragma warning disable CS1591 + using System; using System.IO; using System.Threading.Tasks; @@ -43,10 +45,7 @@ namespace Emby.Server.Implementations.Services private static string GetContentTypeWithoutEncoding(string contentType) { - return contentType == null - ? null - : contentType.Split(';')[0].ToLowerInvariant().Trim(); + return contentType?.Split(';')[0].ToLowerInvariant().Trim(); } - } } |
