diff --git a/src/services/formatting/formatting.ts b/src/services/formatting/formatting.ts index 4453bd299fc..ab0867bdd69 100644 --- a/src/services/formatting/formatting.ts +++ b/src/services/formatting/formatting.ts @@ -281,8 +281,8 @@ namespace ts.formatting { * to the initial indentation. */ function getOwnOrInheritedDelta(n: Node, options: FormatCodeOptions, sourceFile: SourceFile): number { - let previousLine = Constants.Unknown; - let child: Node; + let previousLine = Constants.Unknown; + let child: Node; while (n) { let line = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)).line; if (previousLine !== Constants.Unknown && line !== previousLine) { @@ -385,8 +385,8 @@ namespace ts.formatting { parentDynamicIndentation: DynamicIndentation, effectiveParentStartLine: number): Indentation { - let indentation = inheritedIndentation; - var delta = SmartIndenter.shouldIndentChildNode(node) ? options.IndentSize : 0; + let indentation = inheritedIndentation; + var delta = SmartIndenter.shouldIndentChildNode(node) ? options.IndentSize : 0; if (effectiveParentStartLine === startLine) { // if node is located on the same line with the parent @@ -485,8 +485,8 @@ namespace ts.formatting { else { indentation -= options.IndentSize; } - - if (SmartIndenter.shouldIndentChildNode(node)) { + + if (SmartIndenter.shouldIndentChildNode(node)) { delta = options.IndentSize; } else {