Skip to content

Commit a7c1153

Browse files
committed
change break to return to prevent for loop break issue
1 parent 544a8e0 commit a7c1153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/hcpvaultsecretsapp_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (r *HCPVaultSecretsAppReconciler) startOrphanedShadowSecretCleanup(ctx cont
303303
if ctx.Err() != nil {
304304
err = ctx.Err()
305305
}
306-
break
306+
return
307307
// runs the cleanup process once every hour or as specified by the user
308308
case <-time.After(cleanupOrphanedShadowSecretInterval):
309309
r.cleanupOrphanedShadowSecrets(ctx)

0 commit comments

Comments
 (0)