mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -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();
|
.to_owned();
|
||||||
Some(p)
|
Some(p)
|
||||||
} else if module_specifier.scheme() == "npm" {
|
} else if module_specifier.scheme() == "npm" {
|
||||||
Some(std::env::current_dir().unwrap())
|
Some(current_dir.to_path_buf())
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue