From e079c9ed455da2fd4646cdced34e99a746126847 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Thu, 19 Dec 2019 11:46:22 +0100 Subject: [PATCH] manager: add full stops on comments Signed-off-by: Julien Pivotto --- rules/manager.go | 2 +- rules/manager_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/manager.go b/rules/manager.go index 21e455c84..8aa33d775 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 8fc8513bd..c955068cb 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)