From 8987fc10edf54e75169f1db1fee45bfcd35eef43 Mon Sep 17 00:00:00 2001 From: Don Browne Date: Mon, 15 Jul 2024 11:46:04 +0100 Subject: [PATCH] fix location of comment --- internal/engine/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/engine/executor.go b/internal/engine/executor.go index d405cbcb49..951d88c3fc 100644 --- a/internal/engine/executor.go +++ b/internal/engine/executor.go @@ -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) } @@ -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,