You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-21 23:00:50 +03:00
template: more cleanups
This commit is contained in:
@@ -61,10 +61,7 @@ pub(crate) async fn get(
|
||||
let ctx = ReauthContext::default();
|
||||
let next = query.load_context(&mut conn).await?;
|
||||
let ctx = if let Some(next) = next {
|
||||
// SAFETY: we should have an action only if we have a "next" context
|
||||
// TODO: make that cleaner
|
||||
let action = query.post_auth_action.unwrap();
|
||||
ctx.with_post_action(next, action)
|
||||
ctx.with_post_action(next)
|
||||
} else {
|
||||
ctx
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user