chrore: format: paket.login
This commit is contained in:
parent
bfad2ee61b
commit
274f404ca0
1 changed files with 6 additions and 9 deletions
|
@ -191,15 +191,12 @@ impl AsyncComponent for Login {
|
|||
return value;
|
||||
});
|
||||
if let Ok(value) = refresh_token {
|
||||
match value {
|
||||
Some(value) => {
|
||||
model.refresh_token = Some(RefreshToken::new(value).unwrap());
|
||||
sender.input(LoginInput::NeedsRefresh);
|
||||
}
|
||||
None => {
|
||||
sender.input(LoginInput::NeedsLogin);
|
||||
}
|
||||
};
|
||||
model.refresh_token = value;
|
||||
if model.refresh_token.is_some() {
|
||||
sender.input(LoginInput::NeedsRefresh);
|
||||
} else {
|
||||
sender.input(LoginInput::NeedsLogin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue