mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
remove duplicated constructions
This commit is contained in:
parent
f64bbb719c
commit
27f778e231
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue