Skip to content

Commit ee0b544

Browse files
author
Per Goncalves da Silva
committed
add onDelete guard
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 18cc8e9 commit ee0b544

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/lib/queueinformer/queueinformer.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ func (q *QueueInformer) resourceHandlers(_ context.Context) *cache.ResourceEvent
6666
})
6767
},
6868
DeleteFunc: func(obj interface{}) {
69-
q.onDelete(obj)
69+
if q.onDelete != nil {
70+
q.onDelete(obj)
71+
}
7072
},
7173
}
7274
}

0 commit comments

Comments
 (0)