mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-12-06 19:16:48 +01:00
Reformat code
This commit is contained in:
+1
-5
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user