Skip to content

Commit

Permalink
Update internal/api/promote_downstream_v1alpha1.go
Browse files Browse the repository at this point in the history
  • Loading branch information
krancour authored Oct 4, 2024
1 parent 69d8aa9 commit 075d190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/promote_downstream_v1alpha1.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (s *server) PromoteDownstream(
newPromo := kargo.NewPromotion(ctx, downstream, freight.Name)
// nolint: staticcheck
if downstream.Spec.PromotionMechanisms == nil &&
downstream.Spec.PromotionTemplate != nil &&
downstream.Spec.PromotionTemplate != nil &&
len(downstream.Spec.PromotionTemplate.Spec.Steps) == 0 {
// Avoid creating a Promotion if the downstream Stage has no
// PromotionMechanisms, and no promotion steps and is a "control flow" Stage.
Expand Down

0 comments on commit 075d190

Please sign in to comment.