chore(gonf): removed opinionated static checkers

This commit is contained in:
Julien Dessaux 2024-06-02 01:17:36 +02:00
parent efbfb291ae
commit 4a254746de
Signed by: adyxax
GPG key ID: F92E51B86E07177E
10 changed files with 56 additions and 86 deletions

View file

@ -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)
}
}