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 port = uri.port();
if let Some(host) = uri.host() {
if port.is_positive() {
return Some(gformat!("{scheme}://{host}:{port}/"));
return Some(if port.is_positive() {
gformat!("{scheme}://{host}:{port}/")
} else {
return Some(gformat!("{scheme}://{host}/"));
} // @TODO auth params
gformat!("{scheme}://{host}/")
});
}
}
None