chrore: format: paket.login

This commit is contained in:
jane400 2024-10-02 17:44:01 +02:00 committed by jane400
parent e994bec86f
commit c1e91ff1bb

View file

@ -191,15 +191,12 @@ impl AsyncComponent for Login {
return value; return value;
}); });
if let Ok(value) = refresh_token { if let Ok(value) = refresh_token {
match value { model.refresh_token = value;
Some(value) => { if model.refresh_token.is_some() {
model.refresh_token = Some(RefreshToken::new(value).unwrap());
sender.input(LoginInput::NeedsRefresh); sender.input(LoginInput::NeedsRefresh);
} } else {
None => {
sender.input(LoginInput::NeedsLogin); sender.input(LoginInput::NeedsLogin);
} }
};
} }
} }