Remove dead code

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-12-27 22:26:51 -03:00
parent 944d36fdba
commit d9af197e62
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
7 changed files with 4 additions and 26 deletions

View file

@ -56,7 +56,7 @@ func (n *NGINXController) Check(_ *http.Request) error {
return errors.Wrapf(err, "reading NGINX PID from file %v", nginx.PID)
}
_, err = fs.NewProc(pid)
_, err = fs.Proc(pid)
if err != nil {
return errors.Wrapf(err, "checking for NGINX process with PID %v", pid)
}