Skip to content

Commit

Permalink
make prettier happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed May 12, 2021
1 parent 332569e commit fdc152f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-traverse/src/path/replacement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export function replaceExpressionWithStatements(
callee.arrowFunctionToExpression();
// Fixme: we can not `assert this is NodePath<t.FunctionExpression>` in `arrowFunctionToExpression`
// because it is not a class method known at compile time.
const newCallee = (callee as unknown) as NodePath<t.FunctionExpression>;
const newCallee = callee as unknown as NodePath<t.FunctionExpression>;

// (() => await xxx)() -> await (async () => await xxx)();
const needToAwaitFunction =
Expand Down

0 comments on commit fdc152f

Please sign in to comment.