Skip to content

Commit ea673b4

Browse files
authored
Merge pull request #375 from mrkm4ntr/remove-redundant-check
🐛 Remove redundant check
2 parents 86f461a + 9802d0b commit ea673b4

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)