Skip to content

Commit d586f3b

Browse files
authoredFeb 18, 2025··
fix: remove duplicate var (#8117)
Following up on #8115. Since `cleanFetchSpec` no longer differs from `fetchSpec`, it's no longer needed. cc @wraithgar
1 parent 811ca29 commit d586f3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎workspaces/arborist/lib/consistent-resolve.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ const consistentResolve = (resolved, fromPath, toPath, relPaths = false) => {
2020
raw,
2121
} = npa(resolved, fromPath)
2222
if (type === 'file' || type === 'directory') {
23-
const cleanFetchSpec = fetchSpec
2423
if (relPaths && toPath) {
25-
return `file:${relpath(toPath, cleanFetchSpec)}`
24+
return `file:${relpath(toPath, fetchSpec)}`
2625
}
27-
return `file:${cleanFetchSpec}`
26+
return `file:${fetchSpec}`
2827
}
2928
if (hosted) {
3029
return `git+${hosted.auth ? hosted.https(hostedOpt) : hosted.sshurl(hostedOpt)}`

0 commit comments

Comments
 (0)
Please sign in to comment.