Skip to content

Commit

Permalink
fix: plan _system_ not found bug when running health operations
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge authored Jul 12, 2024
1 parent 0d98e44 commit c19665a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ func TasksTriggeredByEvent(config *v1.Config, repoID string, planID string, pare
return nil, fmt.Errorf("repo %v not found", repoID)
}
plan := cfg.FindPlan(config, planID)
if plan == nil && planID != "" {
return nil, fmt.Errorf("plan %v not found", planID)
}

for idx, hook := range repo.GetHooks() {
event := firstMatchingCondition(hook, events)
Expand Down

0 comments on commit c19665a

Please sign in to comment.