Skip to content

Commit

Permalink
Small nit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed May 2, 2020
1 parent b09826c commit 7997fb2
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -39,11 +39,8 @@ export default declare(api => {
}
}

const isRHSAnonymousorArrowFunction =
t.isFunctionExpression(right, {
id: null,
}) || t.isArrowFunctionExpression(right);
const rightExpression = isRHSAnonymousorArrowFunction
const isRHSAnonymousFunction = t.isFunction(right, { id: null });
const rightExpression = isRHSAnonymousFunction
? t.sequenceExpression([t.numericLiteral(0), right])
: right;

Expand Down

0 comments on commit 7997fb2

Please sign in to comment.