mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
refactor(npm): avoid cloning snapshot for lockfile (#17451)
This commit is contained in:
parent
f0c79a676c
commit
40527526e5
3 changed files with 5 additions and 13 deletions
|
@ -169,8 +169,7 @@ impl InnerNpmPackageResolver for GlobalNpmPackageResolver {
|
|||
}
|
||||
|
||||
fn lock(&self, lockfile: &mut Lockfile) -> Result<(), AnyError> {
|
||||
let snapshot = self.resolution.snapshot();
|
||||
self.resolution.lock(lockfile, &snapshot)
|
||||
self.resolution.lock(lockfile)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue