Skip to content

Commit c5f6c4f

Browse files
author
Arthur Ozga
committed
remove unecessary check
1 parent 61af315 commit c5f6c4f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/services/formatting/formatting.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ namespace ts.formatting {
104104
export function formatOnOpeningCurly(position: number, sourceFile: SourceFile, rulesProvider: RulesProvider, options: FormatCodeSettings): TextChange[] {
105105
const openingCurly = findImmediatelyPrecedingTokenOfKind(position, SyntaxKind.OpenBraceToken, sourceFile);
106106
const curlyBraceRange = openingCurly && openingCurly.parent;
107-
return curlyBraceRange ?
108-
formatOutermostNodeWithinListLevel(curlyBraceRange, sourceFile, options, rulesProvider, FormattingRequestKind.FormatOnOpeningCurlyBrace) :
109-
[];
107+
return formatOutermostNodeWithinListLevel(curlyBraceRange, sourceFile, options, rulesProvider, FormattingRequestKind.FormatOnOpeningCurlyBrace);
110108
}
111109

112110
export function formatOnClosingCurly(position: number, sourceFile: SourceFile, rulesProvider: RulesProvider, options: FormatCodeSettings): TextChange[] {

0 commit comments

Comments
 (0)