Apply review suggestions

This commit is contained in:
Shadowghost 2022-10-07 09:21:51 +02:00
parent 7239141181
commit 79b19e2325

View File

@ -46,9 +46,6 @@ namespace Jellyfin.Server.Middleware
var baseUrlPrefix = serverConfigurationManager.GetNetworkConfiguration().BaseUrl;
if (string.IsNullOrEmpty(localPath)
|| string.Equals(localPath, "/", StringComparison.OrdinalIgnoreCase)
|| string.Equals(localPath, "/web", StringComparison.OrdinalIgnoreCase)
|| string.Equals(localPath, "/web/", StringComparison.OrdinalIgnoreCase)
|| string.Equals(localPath, baseUrlPrefix, StringComparison.OrdinalIgnoreCase)
|| string.Equals(localPath, baseUrlPrefix + "/", StringComparison.OrdinalIgnoreCase)
|| string.Equals(localPath, baseUrlPrefix + "/web", StringComparison.OrdinalIgnoreCase)