Skip to content

Commit

Permalink
Merge pull request #375 from mrkm4ntr/remove-redundant-check
Browse files Browse the repository at this point in the history
🐛 Remove redundant check
  • Loading branch information
k8s-ci-robot committed Apr 5, 2019
2 parents 86f461a + 9802d0b commit ea673b4
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 ea673b4

Please sign in to comment.