diff options
author | Julien Dessaux | 2024-06-02 01:17:36 +0200 |
---|---|---|
committer | Julien Dessaux | 2024-06-02 01:17:36 +0200 |
commit | 4a254746de7246ddf8ac131f734f224d49e927b7 (patch) | |
tree | e7b33fb7769864ed7528ae9fe1f59a6a61012351 /stdlib | |
parent | fix(gonf): fixed hostflag management (diff) | |
download | gonf-4a254746de7246ddf8ac131f734f224d49e927b7.tar.gz gonf-4a254746de7246ddf8ac131f734f224d49e927b7.tar.bz2 gonf-4a254746de7246ddf8ac131f734f224d49e927b7.zip |
chore(gonf): removed opinionated static checkers
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/os/systemd/systemd.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } } |