Skip to content

Commit

Permalink
change break to return to prevent for loop break issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jaireddjawed committed Jan 31, 2025
1 parent 544a8e0 commit a7c1153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/hcpvaultsecretsapp_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (r *HCPVaultSecretsAppReconciler) startOrphanedShadowSecretCleanup(ctx cont
if ctx.Err() != nil {
err = ctx.Err()
}
break
return
// runs the cleanup process once every hour or as specified by the user
case <-time.After(cleanupOrphanedShadowSecretInterval):
r.cleanupOrphanedShadowSecrets(ctx)
Expand Down

0 comments on commit a7c1153

Please sign in to comment.