diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 13db690aa4a..85618a0986e 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -24655,7 +24655,6 @@ namespace ts { case SyntaxKind.ConstructorType: case SyntaxKind.CallSignature: case SyntaxKind.ConstructSignature: - return checkSignatureDeclaration(node); case SyntaxKind.IndexSignature: return checkSignatureDeclaration(node); case SyntaxKind.MethodDeclaration: @@ -24775,8 +24774,6 @@ namespace ts { case SyntaxKind.ExportAssignment: return checkExportAssignment(node); case SyntaxKind.EmptyStatement: - checkGrammarStatementInAmbientContext(node); - return; case SyntaxKind.DebuggerStatement: checkGrammarStatementInAmbientContext(node); return; diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index a203b2bfaba..c8845e7ad35 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -1034,7 +1034,7 @@ namespace ts { const onlyRecordFailures = !directoryProbablyExists(getDirectoryPath(file), state.host); const fromFile = tryFile(file, failedLookupLocations, onlyRecordFailures, state); if (fromFile) { - const resolved = fromFile && resolvedIfExtensionMatches(extensions, fromFile); + const resolved = resolvedIfExtensionMatches(extensions, fromFile); if (resolved) { return resolved; }