瀏覽代碼

fix(self_check): remove redundant file existence check in CheckPIDPath function

Jacky 22 小時之前
父節點
當前提交
56ffade4e2
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      internal/self_check/nginx.go

+ 0 - 3
internal/self_check/nginx.go

@@ -35,9 +35,6 @@ func CheckPIDPath() error {
 	if path == "" {
 		return ErrPIDPathNotExist
 	}
-	if !helper.FileExists(path) {
-		return ErrPIDPathNotExist
-	}
 	return nil
 }