From 8b9195e3e3506d576b39a23ca646c260dfacc808 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 1 May 2024 16:23:08 +0200 Subject: chore(gonf): fix errcheck and shadow errors --- 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 8d5ec77..81e6a6b 100644 --- a/stdlib/os/systemd/systemd.go +++ b/stdlib/os/systemd/systemd.go @@ -8,7 +8,7 @@ import ( ) func Promise() { - gonf.SetServiceFunction(systemd_service) + gonf.SetServiceFunction(systemdService) } func isEnabled(name string) bool { @@ -33,7 +33,7 @@ func systemctlShow(name, field string) string { return string(out[:len(out)-1]) // remove trailing '\n' and convert to string } -func systemd_service(name, state string) (gonf.Status, error) { +func systemdService(name, state string) (gonf.Status, error) { switch state { case "disabled": if isEnabled(name) { -- cgit v1.2.3