Skip to content

Commit

Permalink
fix location of comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjb committed Jul 15, 2024
1 parent e1a9e0e commit 8987fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/engine/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ func (e *executor) getEvaluator(
return nil, nil, nil, fmt.Errorf("error creating eval status params: %w", err)
}

// TODO: Once we use the rule instance table, this will no longer be necessary
if profile.Id == nil {
return nil, nil, nil, fmt.Errorf("profile %s missing ID", profile.Name)
}
Expand All @@ -223,6 +222,7 @@ func (e *executor) getEvaluator(
return nil, nil, nil, fmt.Errorf("unable to parse %s as profile ID", *profile.Id)
}

// TODO: Once we use the rule instance table, this will no longer be necessary
ruleTypeID, err := e.querier.GetRuleTypeIDByRuleNameEntityProfile(ctx,
db.GetRuleTypeIDByRuleNameEntityProfileParams{
ProfileID: profileID,
Expand Down

0 comments on commit 8987fc1

Please sign in to comment.