Closed amaicode closed 1 year ago
This PR is to address what I think might have been an oversight in the ast package walk.go file.
When the switch runs across a BadStatement node, this causes it to default (and panic).
I have added an empty case for this node type similar to BadExpression to get around this as well as a unit test.
If you rebase to master, I fixed the lint issues @amaicode
Just rebased :)
This PR is to address what I think might have been an oversight in the ast package walk.go file.
When the switch runs across a BadStatement node, this causes it to default (and panic).
I have added an empty case for this node type similar to BadExpression to get around this as well as a unit test.