Skip to content

Commit 56ffade

Browse files
committed
fix(self_check): remove redundant file existence check in CheckPIDPath function
1 parent b2ffe9c commit 56ffade

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/self_check/nginx.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ func CheckPIDPath() error {
3535
if path == "" {
3636
return ErrPIDPathNotExist
3737
}
38-
if !helper.FileExists(path) {
39-
return ErrPIDPathNotExist
40-
}
4138
return nil
4239
}
4340

0 commit comments

Comments
 (0)