Skip to content

Commit

Permalink
perf: remove duplicate env::current_dir call in package.json search (
Browse files Browse the repository at this point in the history
…#22255)

Micro-optimization.
  • Loading branch information
dsherret authored and littledivy committed Feb 8, 2024
1 parent f3b860f commit 932cd1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/args/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 932cd1d

Please sign in to comment.