robot: Make linter happy

This commit is contained in:
Ettore Di Giacinto
2022-07-25 22:26:10 +00:00
committed by Itxaka
parent 1a12a26876
commit b62a3fc892
21 changed files with 156 additions and 116 deletions

View File

@@ -12,15 +12,15 @@ import (
func Reboot() {
pterm.Info.Println("Rebooting node")
SH("reboot")
SH("reboot") //nolint:errcheck
}
func PowerOFF() {
pterm.Info.Println("Shutdown node")
if IsOpenRCBased() {
SH("poweroff")
SH("poweroff") //nolint:errcheck
} else {
SH("shutdown")
SH("shutdown") //nolint:errcheck
}
}