slight condition change for getDelta

This commit is contained in:
SaschaNaz
2015-09-22 16:32:24 +09:00
parent 3dd7caafbf
commit f9e8d9562d
+1 -1
View File
@@ -480,7 +480,7 @@ namespace ts.formatting {
}
},
getIndentation: () => indentation,
getDelta: (child) => (!delta || SmartIndenter.shouldInheritParentIndentation(node, child)) ? 0 : delta,
getDelta: (child) => (delta && SmartIndenter.shouldInheritParentIndentation(node, child)) ? 0 : delta,
recomputeIndentation: lineAdded => {
if (node.parent && SmartIndenter.shouldIndentChildNode(node.parent, node)) {
if (lineAdded) {