mirror of https://github.com/gobwas/glob.git
Fixed vet error 'syntax/ast/parser.go:86: unreachable code'
This commit is contained in:
parent
f756513aec
commit
a88b7fbdd7
|
@ -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("unexpected token: %s", token)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil, tree, fmt.Errorf("unknown error")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func parserRange(tree *Node, lex Lexer) (parseFn, *Node, error) {
|
func parserRange(tree *Node, lex Lexer) (parseFn, *Node, error) {
|
||||||
|
|
Loading…
Reference in New Issue