Skip to content

Commit 9802d0b

Browse files
committed
Remove redundant check
1 parent e4c40bc commit 9802d0b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/internal/controller/controller.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,6 @@ func (c *Controller) processNextWorkItem() bool {
180180
}()
181181

182182
obj, shutdown := c.Queue.Get()
183-
if obj == nil {
184-
// Sometimes the Queue gives us nil items when it starts up
185-
c.Queue.Forget(obj)
186-
}
187-
188183
if shutdown {
189184
// Stop working
190185
return false

0 commit comments

Comments
 (0)