Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkm4ntr committed Mar 27, 2019
1 parent e4c40bc commit 9802d0b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,6 @@ func (c *Controller) processNextWorkItem() bool {
}()

obj, shutdown := c.Queue.Get()
if obj == nil {
// Sometimes the Queue gives us nil items when it starts up
c.Queue.Forget(obj)
}

if shutdown {
// Stop working
return false
Expand Down

0 comments on commit 9802d0b

Please sign in to comment.