mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 12:16:11 -05:00
style: lint
This commit is contained in:
parent
0e4eefa9b8
commit
55a61ee585
1 changed files with 9 additions and 7 deletions
|
@ -611,14 +611,16 @@ fn discover_npmrc(
|
|||
merged_scopes.entry(key).or_insert(value);
|
||||
}
|
||||
for data in merged_scopes.values_mut() {
|
||||
if let (Some(host), Some(port)) = (data.registry_url.host_str(), data.registry_url.port()) {
|
||||
let path = data.registry_url.path();
|
||||
let url = format!("{}:{}{}", host, port, path);
|
||||
if let Some(config) = merged_registry_configs.get(&url) {
|
||||
data.config = config.clone();
|
||||
}
|
||||
if let (Some(host), Some(port)) =
|
||||
(data.registry_url.host_str(), data.registry_url.port())
|
||||
{
|
||||
let path = data.registry_url.path();
|
||||
let url = format!("{}:{}{}", host, port, path);
|
||||
if let Some(config) = merged_registry_configs.get(&url) {
|
||||
data.config = config.clone();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ResolvedNpmRc {
|
||||
default_config: merged_default_config,
|
||||
|
|
Loading…
Add table
Reference in a new issue