Skip to content

Commit

Permalink
also add await expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
planttheidea committed Dec 16, 2023
1 parent f616ec1 commit 0ce46f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@ export function isConditionalUsage(path: Path<CallExpression>): boolean {
const parentPath = path.parentPath;

return (
parentPath.isAwaitExpression() ||
parentPath.isBinaryExpression() ||
parentPath.isConditionalExpression() ||
parentPath.isLogicalExpression() ||
parentPath.isUnaryExpression() ||
parentPath.isBinaryExpression()
parentPath.isUnaryExpression()
);
}

Expand Down

0 comments on commit 0ce46f3

Please sign in to comment.