Skip to content

Commit

Permalink
fix: CodeQL scan warning
Browse files Browse the repository at this point in the history
(cherry picked from commit b4aa989)
  • Loading branch information
oilbeater committed Oct 26, 2020
1 parent df8530a commit d74e207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (c *Controller) enqueueDeletePod(obj interface{}) {
return
}

if int32(index) >= *ss.Spec.Replicas {
if index >= int64(*ss.Spec.Replicas) {
c.deletePodQueue.Add(key)
return
}
Expand Down

0 comments on commit d74e207

Please sign in to comment.