Skip to content

Commit 542ce81

Browse files
committed
TS: Simplify string equality check
1 parent fc04e06 commit 542ce81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • javascript/extractor/lib/typescript/src

javascript/extractor/lib/typescript/src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class Project {
8888

8989
// If the requested module name is exactly the overridden package name,
9090
// return the entry point file (it is not necessarily called `index.ts`).
91-
if (moduleName.length === packageName.length) {
91+
if (moduleName === packageName) {
9292
return { resolvedFileName: packageEntryPoint, isExternalLibraryImport: true };
9393
}
9494

0 commit comments

Comments
 (0)