使用==替代string.Equals

This commit is contained in:
小仙女
2023-02-19 19:15:02 +08:00
parent ee61363c31
commit 2bd4088d40
7 changed files with 17 additions and 17 deletions

View File

@@ -20,9 +20,9 @@ public class PacHandler
public static void Start(string configPath, int httpPort, int pacPort)
{
if (configPath.Equals(_configPath)
&& httpPort.Equals(_httpPort)
&& pacPort.Equals(_pacPort)
if (configPath == _configPath
&& httpPort == _httpPort
&& pacPort == _pacPort
&& _isRunning)
{
_needRestart = false;