Ver código fonte

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

Jacky 4 dias atrás
pai
commit
56ffade4e2
1 arquivos alterados com 0 adições e 3 exclusões
  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
 }