Code cleanup: pattern matching and minor fixes

This commit is contained in:
2dust
2026-03-10 17:19:21 +08:00
parent 0c2114d2e1
commit 26f65dd3b2
8 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -1040,8 +1040,8 @@ public static class ConfigHandler
if (profileItem.StreamSecurity.IsNotEmpty())
{
if (profileItem.StreamSecurity != Global.StreamSecurity
&& profileItem.StreamSecurity != Global.StreamSecurityReality)
if (profileItem.StreamSecurity is not Global.StreamSecurity
and not Global.StreamSecurityReality)
{
profileItem.StreamSecurity = string.Empty;
}