diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 9347329e624..fb62fd57319 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -23225,8 +23225,7 @@ namespace ts { return findAncestor(node, element => { if (isConstructorDeclaration(element) && nodeIsPresent(element.body)) { return true; - } - else if (element === classDeclaration || isFunctionLikeDeclaration(element)) { + } else if (element === classDeclaration || isFunctionLikeDeclaration(element)) { return "quit"; }