mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-14 06:06:41 +00:00
Fix some 'bugs' flagged by sonarcloud
This commit is contained in:
@@ -208,8 +208,9 @@ namespace Emby.Server.Implementations.SocketSharp
|
||||
|
||||
private static string GetQueryStringContentType(HttpRequest httpReq)
|
||||
{
|
||||
ReadOnlySpan<char> format = httpReq.Query["format"].ToString();
|
||||
if (format == null)
|
||||
string formatStr = httpReq.Query["format"].ToString();
|
||||
ReadOnlySpan<char> format = formatStr;
|
||||
if (formatStr == null)
|
||||
{
|
||||
const int FormatMaxLength = 4;
|
||||
ReadOnlySpan<char> pi = httpReq.Path.ToString();
|
||||
|
||||
Reference in New Issue
Block a user