Skip to content

Commit 7bdfc48

Browse files
authored
Fix Walk logic for When clause (#190)
1 parent 1893845 commit 7bdfc48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/walk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func Walk(node Expr, fn WalkFunc) bool {
143143
return false
144144
}
145145
case *WhenClause:
146-
if Walk(n.When, fn) {
146+
if !Walk(n.When, fn) {
147147
return false
148148
}
149149
if !Walk(n.Then, fn) {

0 commit comments

Comments
 (0)