use undefined instead of null

This commit is contained in:
SaschaNaz
2015-09-13 16:01:32 +09:00
parent 46c8af1024
commit 4d1c067d75
+1 -1
View File
@@ -282,7 +282,7 @@ namespace ts.formatting {
*/
function getOwnOrInheritedDelta(n: Node, options: FormatCodeOptions, sourceFile: SourceFile): number {
let previousLine = Constants.Unknown;
let child: Node = null;
let child: Node;
while (n) {
let line = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)).line;
if (previousLine !== Constants.Unknown && line !== previousLine) {