Prechádzať zdrojové kódy

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

Jacky 2 mesiacov pred
rodič
commit
56ffade4e2
1 zmenil súbory, kde vykonal 0 pridanie a 3 odobranie
  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
 }