summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-02-04 00:11:12 -0500
committerGitHub <noreply@github.com>2024-02-04 00:11:12 -0500
commita284f50732259c84cfb13216fecd979cfc957e1a (patch)
tree2e48bb702690f8482077f8cfdcf319bd168850ab /cli/args/flags.rs
parent0bfa0cc0276e94f1a308aaad5f925eaacb6e3db2 (diff)
perf: remove duplicate `env::current_dir` call in package.json search (#22255)
Micro-optimization.
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index aa59eb36a..824b73264 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -744,7 +744,7 @@ impl Flags {
.to_owned();
Some(p)
} else if module_specifier.scheme() == "npm" {
- Some(std::env::current_dir().unwrap())
+ Some(current_dir.to_path_buf())
} else {
None
}