Skip to content

Commit

Permalink
fix: test run exec insertion fails if no rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal-Delange committed Feb 19, 2025
1 parent e9fdd73 commit 4ce75e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions repositories/decision_phantoms_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ func (repo *MarbleDbRepository) StorePhantomDecision(
return err
}

// It's possible that a scenario has no rules, just a sanction check config
if len(decision.RuleExecutions) == 0 {
return nil
}

ctx, span = tracer.Start(
ctx,
"DecisionPhantomRepository.StorePhantomDecision.store_phantom__decision_rules",
Expand Down

0 comments on commit 4ce75e8

Please sign in to comment.