Apply suggestion from @sandhose

Co-authored-by: Quentin Gliech <quenting@element.io>
This commit is contained in:
Tonkku
2026-03-03 17:11:22 +02:00
committed by GitHub
parent 14c0c91035
commit 4b8c5ca156

View File

@@ -62,11 +62,9 @@ pub async fn get(
let Some(session) = maybe_session else {
let mut url = mas_router::Login::and_then(PostAuthAction::manage_account(action));
url = if let Some(login_hint) = unstable_login_hint {
url.with_login_hint(login_hint)
} else {
url
};
if let Some(login_hint) = unstable_login_hint {
url = url.with_login_hint(login_hint);
}
return Ok((cookie_jar, url_builder.redirect(&url)).into_response());
};