Skip to content

Commit 8818205

Browse files
committed
patched binary walk
1 parent b35d54d commit 8818205

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

expr/binary.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,13 @@ func (b *Binary) walk(fn func(ident node.Node, values *Values, operator, parentO
8484
return err
8585
}
8686
}
87-
if nested, ok := binY.Y.(*Parenthesis); ok {
88-
if nestedBin, ok := nested.X.(*Binary); ok {
89-
if err = nestedBin.walk(fn, binY.Op); err != nil {
90-
return err
91-
}
87+
}
88+
if nested, ok := b.Y.(*Parenthesis); ok {
89+
if nestedBin, ok := nested.X.(*Binary); ok {
90+
if err = nestedBin.walk(fn, b.Op); err != nil {
91+
return err
9292
}
9393
}
94-
9594
}
9695
return nil
9796
}

0 commit comments

Comments
 (0)