Skip to content

Commit

Permalink
Add a check for the operand in the binary tree
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioaniche committed Sep 24, 2024
1 parent 3948bf0 commit 717d7ca
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ public Boolean visitReturn(ReturnTree node, Set<String> fieldNames) {
return false;
}

// comparison has to be !=
if (binaryTree.getKind() != Tree.Kind.NOT_EQUAL_TO) {
return false;
}

return true;
}
}
Expand Down

0 comments on commit 717d7ca

Please sign in to comment.