mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
perf: remove duplicate env::current_dir
call in package.json search (#22255)
Micro-optimization.
This commit is contained in:
parent
0bfa0cc027
commit
a284f50732
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue