diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 4f3419a0e9ab8..6d083d07385b1 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -24629,7 +24629,6 @@ namespace ts { case SyntaxKind.ConstructorType: case SyntaxKind.CallSignature: case SyntaxKind.ConstructSignature: - return checkSignatureDeclaration(node); case SyntaxKind.IndexSignature: return checkSignatureDeclaration(node); case SyntaxKind.MethodDeclaration: @@ -24749,8 +24748,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 a203b2bfaba35..c8845e7ad358c 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; }