Skip to content

Commit

Permalink
Fixes linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis authored and merceyz committed Jan 21, 2022
1 parent 55ec374 commit 3a2388d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/moduleSpecifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ namespace ts.moduleSpecifiers {
const pnpApi = findPnpApi(path);
const locator = pnpApi?.findPackageLocator(path);
// eslint-disable-next-line no-null/no-null
if (locator != null) {
if (locator !== null && locator !== undefined) {
const sourceLocator = pnpApi.findPackageLocator(`${sourceDirectory}/`);
// Don't use the package name when the imported file is inside
// the source directory (prefer a relative path instead)
Expand Down

0 comments on commit 3a2388d

Please sign in to comment.