Skip to content

Commit

Permalink
Fix the gosec:G601 error
Browse files Browse the repository at this point in the history
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
  • Loading branch information
mprahl authored and openshift-merge-robot committed Jan 20, 2023
1 parent e60e939 commit ebefbd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/configurationpolicy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ func (r *ConfigurationPolicyReconciler) PeriodicallyExecConfigPolicies(freq uint

needDeploymentFinalizer := false

for _, plc := range policiesList.Items {
for i := range policiesList.Items {
plc := policiesList.Items[i]

if objHasFinalizer(&plc, pruneObjectFinalizer) {
needDeploymentFinalizer = true

Expand Down

0 comments on commit ebefbd0

Please sign in to comment.