Skip to content

Commit 724b746

Browse files
authored
Merge pull request #23218 from TravCav/master
Bit more code cleanup
2 parents 05cd784 + 9861569 commit 724b746

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24655,7 +24655,6 @@ namespace ts {
2465524655
case SyntaxKind.ConstructorType:
2465624656
case SyntaxKind.CallSignature:
2465724657
case SyntaxKind.ConstructSignature:
24658-
return checkSignatureDeclaration(<SignatureDeclaration>node);
2465924658
case SyntaxKind.IndexSignature:
2466024659
return checkSignatureDeclaration(<SignatureDeclaration>node);
2466124660
case SyntaxKind.MethodDeclaration:
@@ -24775,8 +24774,6 @@ namespace ts {
2477524774
case SyntaxKind.ExportAssignment:
2477624775
return checkExportAssignment(<ExportAssignment>node);
2477724776
case SyntaxKind.EmptyStatement:
24778-
checkGrammarStatementInAmbientContext(node);
24779-
return;
2478024777
case SyntaxKind.DebuggerStatement:
2478124778
checkGrammarStatementInAmbientContext(node);
2478224779
return;

src/compiler/moduleNameResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ namespace ts {
10341034
const onlyRecordFailures = !directoryProbablyExists(getDirectoryPath(file), state.host);
10351035
const fromFile = tryFile(file, failedLookupLocations, onlyRecordFailures, state);
10361036
if (fromFile) {
1037-
const resolved = fromFile && resolvedIfExtensionMatches(extensions, fromFile);
1037+
const resolved = resolvedIfExtensionMatches(extensions, fromFile);
10381038
if (resolved) {
10391039
return resolved;
10401040
}

0 commit comments

Comments
 (0)