glob icon indicating copy to clipboard operation
glob copied to clipboard

Fixed vet error 'syntax/ast/parser.go:86: unreachable code'

Open kamermans opened this issue 7 years ago • 0 comments

This PR removes an unreachable line of code that is flagged by go tool vet .:

$ go tool vet .
syntax/ast/parser.go:86: unreachable code

Personally, I prefer the catch-all return statement and I think it's annoying that vet doesn't like it, but in any case, this PR removes that line since the switch...default(return) makes it unreachable, and therefore untestable.

kamermans avatar Sep 26 '18 21:09 kamermans