Skip to content

Commit 4c55c74

Browse files
authored
Update argus.go (#15)
This diff fixes go lint fails Signed-off-by: Mikhail Chichvarin <[email protected]>
1 parent 7a7e4ad commit 4c55c74

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

argus.go

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,15 @@
33
package main
44

55
import (
6-
"github.com/golang/glog"
76
pluginapi "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1"
7+
"strconv"
88
)
99

10-
func check(err error) {
11-
if err != nil {
12-
glog.Errorf(err.Error())
13-
}
14-
}
15-
1610
func getDevices(n uint) []*pluginapi.Device {
1711
var devs []*pluginapi.Device
18-
for i := uint(0); i < n; i++ {
12+
for i := 0; i < n; i++ {
1913
devs = append(devs, &pluginapi.Device{
20-
ID: string(i),
14+
ID: strconv.Itoa(i),
2115
Health: pluginapi.Healthy,
2216
})
2317
}

0 commit comments

Comments
 (0)