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
…denoland#22255)

Micro-optimization.
  • Loading branch information
dsherret committed Feb 4, 2024
1 parent 0bfa0cc commit a284f50
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 a284f50

Please sign in to comment.