aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-08-26 17:28:34 +0200
committerGitHub <noreply@github.com>2023-08-26 17:28:34 +0200
commit9ae429b6f64531a2f063a04d0fdd31cceb16a9b5 (patch)
treeaf2dce1e454665f90ea69ef3c752680db73d2be7 /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
parent3ee1141a06d41ac080cd5fd6b2253e1ed23d675e (diff)
parent18a311d32fd6e3cdfed466017bda46566a013106 (diff)
Merge pull request #10141 from Bond-009/nullable3
Diffstat (limited to 'Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs')
-rw-r--r--Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
index e1dfa1d31..3271e08e4 100644
--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
+++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
@@ -276,7 +276,7 @@ namespace Jellyfin.Server.Extensions
}
else if (NetworkExtensions.TryParseToSubnet(allowedProxies[i], out var subnet))
{
- if (subnet != null)
+ if (subnet is not null)
{
AddIPAddress(config, options, subnet.Prefix, subnet.PrefixLength);
}