summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-28 23:40:40 -0400
committerGitHub <noreply@github.com>2024-05-28 23:40:40 -0400
commita8923534ed02e9e4ba3bb277db6e61a208c64125 (patch)
treea745ab2d0d57df6c21486181a21e9cbeeadd9532 /cli/worker.rs
parent14a74600de6f1c206ffe4750f6cb6da59657db8e (diff)
chore: set lockfile as having no content changes after write (#24023)
Slight perf regression when updating deno_lockfile in https://github.com/denoland/deno/pull/23979
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 833f3d543..7efa84369 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -533,7 +533,7 @@ impl CliMainWorkerFactory {
// For npm binary commands, ensure that the lockfile gets updated
// so that we can re-use the npm resolution the next time it runs
// for better performance
- write_lockfile_if_has_changes(&lockfile.lock())?;
+ write_lockfile_if_has_changes(&mut lockfile.lock())?;
}
(node_resolution.into_url(), is_main_cjs)