Fixed golangci-lint issues: /fission/pkg (#1902)

This commit is contained in:
Gaurav Gahlot
2021-01-19 23:29:20 +05:30
committed by GitHub
parent 5155dc72ad
commit 6758a04dbd
20 changed files with 176 additions and 64 deletions
+2 -2
View File
@@ -111,13 +111,13 @@ func (kw *KubeWatcher) svc() {
// Remove old watches
for uid, ws := range kw.watches {
if _, ok := newWatchUids[uid]; !ok {
kw.removeWatch(&ws.watch)
kw.removeWatch(&ws.watch) //nolint: errCheck
}
}
// Add new watches
for _, w := range req.watches {
if _, ok := kw.watches[w.ObjectMeta.UID]; !ok {
kw.addWatch(&w)
kw.addWatch(&w) //nolint: errCheck
}
}
req.responseChannel <- &kubeWatcherResponse{error: nil}