Skip to content

Commit 7e89c18

Browse files
Stricter if test
1 parent 1738250 commit 7e89c18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function flip(operator) {
6969
function flipValue(node) {
7070
if (isValueType(node.type))
7171
node.value = -node.value;
72-
else if (node.type == 'MathExpression') {
72+
else if (node.type === 'MathExpression') {
7373
node.left = flipValue(node.left);
7474
node.right = flipValue(node.right);
7575
}

0 commit comments

Comments
 (0)