Skip to content

Commit

Permalink
satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mwennrich committed Jan 11, 2023
1 parent 30fff80 commit 4f18193
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eventrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,14 @@ func NewEventRouter(kubeClient kubernetes.Interface, eventsInformer coreinformer
kubeClient: kubeClient,
eSink: sinks.ManufactureSink(),
}
eventsInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
_, err := eventsInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: er.addEvent,
UpdateFunc: er.updateEvent,
DeleteFunc: er.deleteEvent,
})
if err != nil {
glog.Warning(err)
}
er.eLister = eventsInformer.Lister()
er.eListerSynched = eventsInformer.Informer().HasSynced
return er
Expand Down

0 comments on commit 4f18193

Please sign in to comment.