AI-optimized code

This commit is contained in:
2dust
2025-03-06 14:34:31 +08:00
parent 3869148fc8
commit 50d7912f62
4 changed files with 19 additions and 19 deletions
@@ -72,8 +72,7 @@ namespace ServiceLib.ViewModels
return;
}
}
if (SelectedSource.ConfigType != EConfigType.SOCKS
&& SelectedSource.ConfigType != EConfigType.HTTP)
if (SelectedSource.ConfigType is not EConfigType.SOCKS and not EConfigType.HTTP)
{
if (SelectedSource.Id.IsNullOrEmpty())
{