Skip to content

Commit

Permalink
#81 fix missing fallthrough code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-dammeier committed Oct 28, 2024
1 parent 0a0045a commit 7acb676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/domain/blueprintSpec.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,15 +398,15 @@ func (spec *BlueprintSpec) CompletePostProcessing() {
spec.Status = StatusPhaseCompleted
spec.Events = append(spec.Events, CompletedEvent{})
case StatusPhaseApplyEcosystemConfigFailed:
fallthrough
case StatusPhaseEcosystemUnhealthyAfterwards:
spec.Status = StatusPhaseFailed
spec.Events = append(spec.Events, ExecutionFailedEvent{err: errors.New("ecosystem is unhealthy")})
case StatusPhaseInProgress:
spec.Status = StatusPhaseFailed
err := errors.New(handleInProgressMsg)
spec.Events = append(spec.Events, ExecutionFailedEvent{err: err})
case StatusPhaseEcosystemUnhealthyAfterwards:
spec.Status = StatusPhaseFailed
spec.Events = append(spec.Events, ExecutionFailedEvent{err: errors.New("ecosystem is unhealthy")})

case StatusPhaseBlueprintApplicationFailed:
spec.Status = StatusPhaseFailed
spec.Events = append(spec.Events, ExecutionFailedEvent{err: errors.New("could not apply blueprint")})
Expand Down

0 comments on commit 7acb676

Please sign in to comment.