From 4a254746de7246ddf8ac131f734f224d49e927b7 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 2 Jun 2024 01:17:36 +0200 Subject: chore(gonf): removed opinionated static checkers --- stdlib/os/systemd/systemd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib/os/systemd') diff --git a/stdlib/os/systemd/systemd.go b/stdlib/os/systemd/systemd.go index 81e6a6b..298998e 100644 --- a/stdlib/os/systemd/systemd.go +++ b/stdlib/os/systemd/systemd.go @@ -1,7 +1,7 @@ package systemd import ( - "errors" + "fmt" "os/exec" gonf "git.adyxax.org/adyxax/gonf/v2/pkg" @@ -64,6 +64,6 @@ func systemdService(name, state string) (gonf.Status, error) { return gonf.KEPT, nil } default: - return gonf.BROKEN, errors.New("unsupported systemctl operation " + state) + return gonf.BROKEN, fmt.Errorf("unsupported systemctl operation " + state) } } -- cgit v1.2.3