From ae43fc004e89000cd20b384238767aa393bd88f7 Mon Sep 17 00:00:00 2001 From: David Bartley Date: Fri, 6 Mar 2020 15:04:25 -0800 Subject: [PATCH] Remove unreachable code flagged by `go vet`. --- syntax/ast/parser.go | 1 - 1 file changed, 1 deletion(-) diff --git a/syntax/ast/parser.go b/syntax/ast/parser.go index 429b409..4056016 100644 --- a/syntax/ast/parser.go +++ b/syntax/ast/parser.go @@ -83,7 +83,6 @@ func parserMain(tree *Node, lex Lexer) (parseFn, *Node, error) { return nil, tree, fmt.Errorf("unexpected token: %s", token) } } - return nil, tree, fmt.Errorf("unknown error") } func parserRange(tree *Node, lex Lexer) (parseFn, *Node, error) {