2
0
mirror of https://github.com/carlostrub/sisyphus synced 2024-10-31 09:20:15 +00:00

cosmetics

This commit is contained in:
Carlo Strub 2017-05-14 20:55:38 +00:00
parent 36a3cb6374
commit 1e2b563585

View File

@ -73,7 +73,6 @@ func (p Pidfile) DaemonStop() error {
}
process, err := os.FindProcess(processID)
if err != nil {
e := fmt.Sprintf("Unable to find process ID [%v] with error %v \n", processID, err)
return errors.New(e)
@ -88,7 +87,6 @@ func (p Pidfile) DaemonStop() error {
log.Printf("stopping sisyphus process ID [%v]\n", processID)
// kill process and exit immediately
err = process.Kill()
if err != nil {
e := fmt.Sprintf("Unable to kill process ID [%v] with error %v \n", processID, err)
return errors.New(e)