mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
remove duplicated constructions
This commit is contained in:
parent
f64bbb719c
commit
27f778e231
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user