Skip to content

Commit

Permalink
minor fix/update
Browse files Browse the repository at this point in the history
  • Loading branch information
buu700 committed Mar 4, 2024
1 parent 1a9fc45 commit 6880a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language-js/print/ternary.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
isJsxElement,
isCallExpression,
isMemberExpression,
isTSTypeExpression,
isBinaryCastExpression,
hasComment,
} from "../utils/index.js";
import { locStart, locEnd } from "../loc.js";
Expand Down Expand Up @@ -163,7 +163,7 @@ function shouldExtraIndentForConditionalExpression(path) {

if (
(node.type === "NewExpression" && node.callee === child) ||
(isTSTypeExpression(node) && node.expression === child)
(isBinaryCastExpression(node) && node.expression === child)
) {
parent = path.getParentNode(ancestorCount + 1);
child = node;
Expand Down

0 comments on commit 6880a57

Please sign in to comment.