Improve readability

This commit is contained in:
bitfl0wer 2023-04-25 17:33:35 +02:00
parent e52a646054
commit 9dad307b71
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ pub mod register {
&mut cloned_limits,
)
.await;
if !response.is_ok() {
if response.is_err() {
return Err(InstanceServerError::NoResponse);
}
@ -55,9 +55,9 @@ pub mod register {
}
return Err(InstanceServerError::InvalidFormBodyError { error_type, error });
}
return Ok(Token {
Ok(Token {
token: response_text_string,
});
})
}
}
}