No need to double check param length

This commit is contained in:
Tommaso Stocchi 2020-12-14 13:08:07 +01:00
parent 064a9cedbd
commit 13bc57ecc3

View File

@ -273,10 +273,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
{ {
var param = item.Trim().Split('=', 2); var param = item.Trim().Split('=', 2);
if (param.Length == 2) result[param[0]] = param[1].Trim('"');
{
result[param[0]] = param[1].Trim('"');
}
} }
return result; return result;