diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-09-10 12:34:20 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-09-10 14:05:26 +0000 |
| commit | 8c8b47c0c8cd80d1ff64780b9893d068439ead14 (patch) | |
| tree | 440a17d052b790f801e0d1063f1763fcc465127d /pkg/ast/parser.go | |
| parent | c97c816133b42257d0bcf1ee4bd178bb2a7a2b9e (diff) | |
all: follow new linter recommendations
Diffstat (limited to 'pkg/ast/parser.go')
| -rw-r--r-- | pkg/ast/parser.go | 2 |
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) } |
