aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Services/RequestHelper.cs
diff options
context:
space:
mode:
authorMax Git <rotvel@gmail.com>2020-06-03 12:26:50 +0200
committerMax Git <rotvel@gmail.com>2020-06-03 12:26:50 +0200
commit5df00cb2b8013c143097caa7e350da2be05cc077 (patch)
treeb763d4f74c62fd215fb86c1a9f267c568e9dd3aa /Emby.Server.Implementations/Services/RequestHelper.cs
parente81140be206cbb55120e5da23e79e6609a4507e6 (diff)
parent40502a33e0f0e3c84487be6d3eff2be35c1448ad (diff)
Merge branch 'master' into feature/ffmpeg-version-check
Diffstat (limited to 'Emby.Server.Implementations/Services/RequestHelper.cs')
-rw-r--r--Emby.Server.Implementations/Services/RequestHelper.cs7
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();
}
-
}
}