aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Extensions/ContainerHelper.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2025-04-01 01:38:25 +0200
committerGitHub <noreply@github.com>2025-03-31 17:38:25 -0600
commite9729a536f26a92ccd30cfff4e698e66dbda1adc (patch)
tree1490275722e18c8cfc5d47d072af1189f021638e /MediaBrowser.Model/Extensions/ContainerHelper.cs
parent3fc3b04daf929d1d3a9533fc410cb77885eb2e8a (diff)
Use pattern matching for null checks (#13793)
Fix the few that slipped through
Diffstat (limited to 'MediaBrowser.Model/Extensions/ContainerHelper.cs')
-rw-r--r--MediaBrowser.Model/Extensions/ContainerHelper.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Extensions/ContainerHelper.cs b/MediaBrowser.Model/Extensions/ContainerHelper.cs
index 39e5358ba..848cc2f62 100644
--- a/MediaBrowser.Model/Extensions/ContainerHelper.cs
+++ b/MediaBrowser.Model/Extensions/ContainerHelper.cs
@@ -21,7 +21,7 @@ public static class ContainerHelper
public static bool ContainsContainer(string? profileContainers, string? inputContainer)
{
var isNegativeList = false;
- if (profileContainers != null && profileContainers.StartsWith('-'))
+ if (profileContainers is not null && profileContainers.StartsWith('-'))
{
isNegativeList = true;
profileContainers = profileContainers[1..];
@@ -42,7 +42,7 @@ public static class ContainerHelper
public static bool ContainsContainer(string? profileContainers, ReadOnlySpan<char> inputContainer)
{
var isNegativeList = false;
- if (profileContainers != null && profileContainers.StartsWith('-'))
+ if (profileContainers is not null && profileContainers.StartsWith('-'))
{
isNegativeList = true;
profileContainers = profileContainers[1..];