diff --git a/service_systemd_linux.go b/service_systemd_linux.go index 74e48cc..0b1b059 100644 --- a/service_systemd_linux.go +++ b/service_systemd_linux.go @@ -23,7 +23,7 @@ func isSystemd() bool { if _, err := os.Stat("/run/systemd/system"); err == nil { return true } - if _, err = exec.LookPath("systemctl"); err != nil { + if _, err := exec.LookPath("systemctl"); err != nil { return false } if _, err := os.Stat("/proc/1/comm"); err == nil {