aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ast/parser.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-09-10 12:34:20 +0200
committerTaras Madan <tarasmadan@google.com>2024-09-10 14:05:26 +0000
commit8c8b47c0c8cd80d1ff64780b9893d068439ead14 (patch)
tree440a17d052b790f801e0d1063f1763fcc465127d /pkg/ast/parser.go
parentc97c816133b42257d0bcf1ee4bd178bb2a7a2b9e (diff)
all: follow new linter recommendations
Diffstat (limited to 'pkg/ast/parser.go')
-rw-r--r--pkg/ast/parser.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ast/parser.go b/pkg/ast/parser.go
index 2f2e62055..839d8e6d6 100644
--- a/pkg/ast/parser.go
+++ b/pkg/ast/parser.go
@@ -180,7 +180,7 @@ func (p *parser) expect(tokens ...token) {
for _, tok := range tokens {
str = append(str, tok.String())
}
- p.s.Error(p.pos, fmt.Sprintf("unexpected %v, expecting %v", p.tok, strings.Join(str, ", ")))
+ p.s.Errorf(p.pos, "unexpected %v, expecting %v", p.tok, strings.Join(str, ", "))
panic(errSkipLine)
}