Skip to content

Commit 61ba090

Browse files
committed
Make the linter happy
Signed-off-by: gotjosh <[email protected]>
1 parent 556f276 commit 61ba090

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

pkg/commands/rules.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111

1212
"github.com/pkg/errors"
1313
"github.com/prometheus/client_golang/prometheus"
14-
"github.com/prometheus/prometheus/pkg/rulefmt"
1514

1615
"github.com/grafana/cortextool/pkg/client"
1716
"github.com/grafana/cortextool/pkg/printer"
@@ -519,11 +518,3 @@ func (r *RuleCommand) prepare(k *kingpin.ParseContext) error {
519518

520519
return nil
521520
}
522-
523-
func getRuleName(r rulefmt.Rule) string {
524-
if r.Record != "" {
525-
return r.Record
526-
}
527-
528-
return r.Alert
529-
}

pkg/rules/rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type RuleNamespace struct {
2020
Groups []rulefmt.RuleGroup `yaml:"groups"`
2121
}
2222

23-
// Modifies the aggregation rules in groups to include a given Label.
23+
// AggregateBy Modifies the aggregation rules in groups to include a given Label.
2424
func (r RuleNamespace) AggregateBy(label string) (int, int, error) {
2525
var count, mod int
2626
for i, group := range r.Groups {

0 commit comments

Comments
 (0)