Skip to content

Commit bf94a4a

Browse files
author
Andy Hanson
committed
Change function name
1 parent 720a3bf commit bf94a4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/moduleNameResolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ namespace ts {
680680
// A package.json "typings" may specify an exact filename, or may choose to omit an extension.
681681
const fromExactFile = tryFile(mainOrTypesFile, failedLookupLocations, onlyRecordFailures, state);
682682
if (fromExactFile) {
683-
const resolved = fromExactFile && resolvedFromSuspiciousFile(extensions, fromExactFile);
683+
const resolved = fromExactFile && resolvedIfExtensionMatches(extensions, fromExactFile);
684684
if (resolved) {
685685
return resolved;
686686
}
@@ -709,7 +709,7 @@ namespace ts {
709709
}
710710

711711
/** Resolve from an arbitrarily specified file. Return `undefined` if it has an unsupported extension. */
712-
function resolvedFromSuspiciousFile(extensions: Extensions, path: string): Resolved | undefined {
712+
function resolvedIfExtensionMatches(extensions: Extensions, path: string): Resolved | undefined {
713713
const extension = tryGetExtensionFromPath(path);
714714
return extension !== undefined && extensionIsOk(extensions, extension) ? { path, extension } : undefined;
715715
}

0 commit comments

Comments
 (0)