manager: add full stops on comments

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto 2019-12-19 11:46:22 +01:00
parent 156dcb8cca
commit e079c9ed45
2 changed files with 3 additions and 3 deletions

View file

@ -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 { func (g *Group) Equals(ng *Group) bool {
if g.name != ng.name { if g.name != ng.name {
return false return false

View file

@ -742,7 +742,7 @@ func TestUpdate(t *testing.T) {
ogs[h] = g ogs[h] = g
} }
// Update interval and reload // Update interval and reload.
for i, g := range rgs.Groups { for i, g := range rgs.Groups {
if g.Interval != 0 { if g.Interval != 0 {
rgs.Groups[i].Interval = g.Interval * 2 rgs.Groups[i].Interval = g.Interval * 2
@ -753,7 +753,7 @@ func TestUpdate(t *testing.T) {
} }
reloadAndValidate(rgs, t, tmpFile, ruleManager, expected, ogs) reloadAndValidate(rgs, t, tmpFile, ruleManager, expected, ogs)
// Change group rules and reload // Change group rules and reload.
for i, g := range rgs.Groups { for i, g := range rgs.Groups {
for j, r := range g.Rules { for j, r := range g.Rules {
rgs.Groups[i].Rules[j].Expr = fmt.Sprintf("%s * 0", r.Expr) rgs.Groups[i].Rules[j].Expr = fmt.Sprintf("%s * 0", r.Expr)