Skip to content

Commit

Permalink
Move delete inside if
Browse files Browse the repository at this point in the history
  • Loading branch information
kasabe28 authored and guvenc committed Aug 30, 2024
1 parent 5155a76 commit 652cbe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/network_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ func (r *NetworkReconciler) reconcilePeeredVNIs(ctx context.Context, log logr.Lo
errs = append(errs, err)
continue
}
delete(networkPeeringState, peeredVNI)
}
delete(networkPeeringState, peeredVNI)
}

if err := errors.Join(errs...); err != nil {
Expand Down

0 comments on commit 652cbe5

Please sign in to comment.