From a88b7fbdd7e49e9a9bcbc8db85f4b5f7826564ac Mon Sep 17 00:00:00 2001 From: Steve Kamerman Date: Wed, 26 Sep 2018 16:56:27 -0400 Subject: [PATCH] Fixed vet error 'syntax/ast/parser.go:86: unreachable code' --- 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) {