mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20: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 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user