Fix more golangci-lint warnings and update its config, bump required version of go compiler to 1.24.2
This commit is contained in:
@@ -14,7 +14,7 @@ func main() {
|
||||
batteries, _ := battery.GetAll()
|
||||
|
||||
for index, battery := range batteries {
|
||||
fmt.Printf("Battery %s: %s\n", index, spew.Sdump(battery))
|
||||
fmt.Printf("Battery %d: %s\n", index, spew.Sdump(battery))
|
||||
}
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
Reference in New Issue
Block a user