remove duplicated constructions

This commit is contained in:
yggverse 2024-12-13 02:31:22 +02:00
parent f64bbb719c
commit 27f778e231

View File

@ -45,11 +45,11 @@ impl Home {
let scheme = uri.scheme(); let scheme = uri.scheme();
let port = uri.port(); let port = uri.port();
if let Some(host) = uri.host() { if let Some(host) = uri.host() {
if port.is_positive() { return Some(if port.is_positive() {
return Some(gformat!("{scheme}://{host}:{port}/")); gformat!("{scheme}://{host}:{port}/")
} else { } else {
return Some(gformat!("{scheme}://{host}/")); gformat!("{scheme}://{host}/")
} // @TODO auth params });
} }
} }
None None