diff --git a/checks/common.go b/checks/common.go index 34f41e289..e39879348 100644 --- a/checks/common.go +++ b/checks/common.go @@ -114,7 +114,6 @@ func transform(ctx *context.Context, in *pkg.CheckResult) ([]*pkg.CheckResult, e ctx.Tracef("transformed %s into %v", in, results) } return results, nil - } else if len(transformed) == 1 && t.Name == "" { if ctx.IsTrace() { ctx.Tracef("merging %v into %v", t, in) @@ -158,7 +157,6 @@ func transform(ctx *context.Context, in *pkg.CheckResult) ([]*pkg.CheckResult, e } return []*pkg.CheckResult{in}, nil - } func GetJunitReportFromResults(canaryName string, results []*pkg.CheckResult) JunitTestSuite { diff --git a/checks/metrics.go b/checks/metrics.go index bf58fb883..c4d8c4a78 100644 --- a/checks/metrics.go +++ b/checks/metrics.go @@ -72,7 +72,6 @@ func getLabels(ctx *context.Context, metric external.Metrics) (map[string]string } } labels[label.Name] = val - } return labels, nil