Skip to content

Commit

Permalink
Fixes linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Mar 9, 2020
1 parent 944d972 commit a890fa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/codefixes/importFixes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ namespace ts.codefix {
const fromLocator = pnpApi.findPackageLocator(fromPath);
const toLocator = pnpApi.findPackageLocator(toPath);

// eslint-disable-next-line no-null/no-null
if (toLocator === null) {
return false;
}
Expand All @@ -720,7 +721,8 @@ namespace ts.codefix {
function isImportablePath(fromPath: string, toPath: string, getCanonicalFileName: GetCanonicalFileName, globalCachePath?: string): boolean {
if (isPnpAvailable()) {
return isImportablePathPnp(fromPath, toPath);
} else {
}
else {
return isImportablePathNode(fromPath, toPath, getCanonicalFileName, globalCachePath);
}
}
Expand Down

0 comments on commit a890fa0

Please sign in to comment.