Reformat code

This commit is contained in:
chaos 2023-09-14 18:41:04 +01:00
parent f3754b46cf
commit 7789af5658
No known key found for this signature in database

View file

@ -52,15 +52,11 @@ static CLIENT: Lazy<Client> = Lazy::new(|| {
None
};
let builder = if let Some(proxy) = proxy {
// proxy basic auth
if let Ok(proxy_auth_user) = env::var("PROXY_USER") {
let proxy_auth_pass = env::var("PROXY_PASS").unwrap_or_default();
builder.proxy(
proxy
.basic_auth(&proxy_auth_user, &proxy_auth_pass),
)
builder.proxy(proxy.basic_auth(&proxy_auth_user, &proxy_auth_pass))
} else {
builder.proxy(proxy)
}