Skip to content

Commit

Permalink
fix(wip): pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Sep 2, 2024
1 parent b0f3726 commit 5c2659d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/pro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@ global.term = async (
})
}

function arePathsEqual(path1, path2) {
return path.resolve(path1) === path.resolve(path2)
function arePathsEqual(path1: string | undefined, path2: string | undefined) {
return path1 && path2 && path.resolve(path1) === path.resolve(path2)
}

let isCwdKenv = arePathsEqual(config.cwd, kenvPath())
Expand Down

0 comments on commit 5c2659d

Please sign in to comment.