Skip to content

Commit 322c697

Browse files
committed
Cleaned up the solution
1 parent f0dc6d7 commit 322c697

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/services/formatting/smartIndenter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ export namespace SmartIndenter {
438438
// branch beginning on the line that the whenTrue branch ends.
439439
export function childIsUnindentedBranchOfConditionalExpression(parent: Node, child: TextRangeWithKind, childStartLine: number, sourceFile: SourceFileLike): boolean {
440440
if (isConditionalExpression(parent) && (child === parent.whenTrue || child === parent.whenFalse)) {
441-
442441
const conditionEndLine = getLineAndCharacterOfPosition(sourceFile, parent.condition.end).line;
443442
if (child === parent.whenTrue) {
444443
return childStartLine === conditionEndLine;

0 commit comments

Comments
 (0)