Skip to content

Commit

Permalink
handle logical op errors in mem example
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Feb 12, 2019
1 parent d0a727f commit dbaa665
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/tsl_mem/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,14 @@ func handleLogicalOp(n tsl.Node, book Book) (bool, error) {
l := n.Left.(tsl.Node)
r := n.Right.(tsl.Node)

right, _ := Walk(r, book)
left, _ := Walk(l, book)
right, err := Walk(r, book)
if err != nil {
return false, err
}
left, err := Walk(l, book)
if err != nil {
return false, err
}

switch n.Func {
case tsl.AndOp:
Expand Down

0 comments on commit dbaa665

Please sign in to comment.