diff --git a/rules/manager.go b/rules/manager.go index 21e455c844..8aa33d775b 100644 --- a/rules/manager.go +++ b/rules/manager.go @@ -743,7 +743,7 @@ func (g *Group) RestoreForState(ts time.Time) { } -// Equals return if two groups are the same +// Equals return if two groups are the same. func (g *Group) Equals(ng *Group) bool { if g.name != ng.name { return false diff --git a/rules/manager_test.go b/rules/manager_test.go index 8fc8513bd9..c955068cb2 100644 --- a/rules/manager_test.go +++ b/rules/manager_test.go @@ -742,7 +742,7 @@ func TestUpdate(t *testing.T) { ogs[h] = g } - // Update interval and reload + // Update interval and reload. for i, g := range rgs.Groups { if g.Interval != 0 { rgs.Groups[i].Interval = g.Interval * 2 @@ -753,7 +753,7 @@ func TestUpdate(t *testing.T) { } reloadAndValidate(rgs, t, tmpFile, ruleManager, expected, ogs) - // Change group rules and reload + // Change group rules and reload. for i, g := range rgs.Groups { for j, r := range g.Rules { rgs.Groups[i].Rules[j].Expr = fmt.Sprintf("%s * 0", r.Expr)