Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneschepke committed Jan 9, 2025
1 parent 8d30817 commit 02a3439
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions nym-vpn-core/crates/nym-vpn-account-controller/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,12 @@ where
}

async fn unregister_device_from_api(&self) -> Result<NymVpnDevice, AccountCommandError> {
match self.shared_state().is_ready_to_register_device().await {
ReadyToRegisterDevice::InProgress => {
return Err(AccountCommandError::Internal(
"Device registration in progress".to_owned(),
));
}
_ => {}
if self.shared_state().is_ready_to_register_device().await
== ReadyToRegisterDevice::InProgress
{
return Err(AccountCommandError::Internal(
"Device registration in progress".to_owned(),
));
}

let device = self
Expand Down

0 comments on commit 02a3439

Please sign in to comment.