Skip to content

Commit

Permalink
Version up
Browse files Browse the repository at this point in the history
  • Loading branch information
haskellcamargo committed Jan 3, 2018
1 parent fa629e6 commit bf0efc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -22,7 +22,7 @@ exports.default = function (_ref3) {
return;
}

var lambda = t.arrowFunctionExpression([t.restElement(t.identifier('args'))], t.callExpression(path.node.right, [t.callExpression(path.node.left, [t.spreadElement(t.identifier('args'))])]));
var lambda = t.arrowFunctionExpression([t.restElement(t.identifier('args'))], t.callExpression(t.parenthesizedExpression(path.node.right), [t.callExpression(t.parenthesizedExpression(path.node.left), [t.spreadElement(t.identifier('args'))])]));

path.replaceWith(lambda);
}
Expand Down

0 comments on commit bf0efc1

Please sign in to comment.