Remove redundant string operation (#8324)

This commit is contained in:
Harry Huang
2025-11-16 14:21:34 +08:00
committed by GitHub
parent 3f0bcf7b83
commit 4fb41aeca1
3 changed files with 5 additions and 5 deletions
@@ -300,7 +300,7 @@ public partial class CoreConfigSingboxService
private bool ParseV2Domain(string domain, Rule4Sbox rule)
{
if (domain.StartsWith("#") || domain.StartsWith("ext:") || domain.StartsWith("ext-domain:"))
if (domain.StartsWith('#') || domain.StartsWith("ext:") || domain.StartsWith("ext-domain:"))
{
return false;
}