Skip to content

Commit 382459f

Browse files
committed
adjust try statement indentation for child blocks
1 parent 2667851 commit 382459f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/services/formatting/smartIndenter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,7 @@ export namespace SmartIndenter {
731731
}
732732
break;
733733
case SyntaxKind.TryStatement:
734-
const tryStatement = parent as TryStatement;
735-
if (tryStatement.finallyBlock && tryStatement.finallyBlock === child) {
734+
if (childKind === SyntaxKind.Block) {
736735
return false;
737736
}
738737
break;

0 commit comments

Comments
 (0)