Skip to content

Commit

Permalink
fix: duplicate metrics/results for inline-transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Dec 7, 2023
1 parent 1786d89 commit a412733
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions checks/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ func transform(ctx *context.Context, in *pkg.CheckResult) ([]*pkg.CheckResult, b
}
return results, hasTransformer, nil
} else if len(transformed) == 1 && t.Name == "" {
// no new checks created, in-line transformation only
hasTransformer = false
in.Metrics = append(in.Metrics, t.Metrics...)
if t.Start != nil {
in.Start = *t.Start
Expand Down

0 comments on commit a412733

Please sign in to comment.