mirror of https://github.com/gobwas/glob.git
Remove unreachable code flagged by `go vet`.
This commit is contained in:
parent
e7a84e9525
commit
ae43fc004e
|
@ -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