Skip to content

Commit acecba2

Browse files
authored
Merge pull request #58 from MartijnCuppens/patch-1
Stricter if test
2 parents 1738250 + 7e89c18 commit acecba2

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)