Skip to content

Commit

Permalink
Remove redundant call to UpdateStoredInstance
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Dmitrichenko <[email protected]>
  • Loading branch information
errordeveloper committed Jun 26, 2024
1 parent 49f420b commit e4cc2c6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,6 @@ func (r *Reconciler) doWaitForTermination(_ context.Context, _ logr.Logger, cs *
}

func (r *Reconciler) ApplyAllSets(ctx context.Context, log logr.Logger, withChangeSet withChangeSetFunc) error {
if !r.instanceExists {
if err := r.UpdateStoredInstance(ctx); err != nil {
return fmt.Errorf("instance init failed: %w", err)
}
}

multiSet := len(r.sets) > 1
for s := range r.sets {
set := r.sets[s]
Expand Down

0 comments on commit e4cc2c6

Please sign in to comment.