Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: George Robinson <[email protected]>
  • Loading branch information
grobinson-grafana committed Aug 22, 2023
1 parent 0e7617f commit a371c2a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions matchers/parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ package parse
import (
"errors"
"fmt"
"github.com/prometheus/alertmanager/pkg/labels"
"strconv"
"strings"

"github.com/prometheus/alertmanager/pkg/labels"
)

var (
Expand Down Expand Up @@ -139,11 +140,11 @@ func (p *Parser) parseOpenBrace(l *Lexer) (parseFunc, error) {
return p.parseCloseBrace, nil
}
return nil, err
} else if hasCloseBrace {
}
if hasCloseBrace {
return p.parseCloseBrace, nil
} else {
return p.parseMatcher, nil
}
return p.parseMatcher, nil
}

func (p *Parser) parseCloseBrace(l *Lexer) (parseFunc, error) {
Expand Down

0 comments on commit a371c2a

Please sign in to comment.