Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Coats committed Jan 10, 2024
1 parent fa21f9f commit 4791224
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bindings/core/src/method_handler/secret_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,7 @@ pub(crate) async fn call_secret_manager_method_internal(
}
#[cfg(feature = "stronghold")]
SecretManagerMethod::SetStrongholdPassword { password } => {
let stronghold = if let Some(secret_manager) = secret_manager.downcast::<StrongholdSecretManager>() {
secret_manager
} else if let Some(SecretManager::Stronghold(secret_manager)) = secret_manager.downcast::<SecretManager>() {
secret_manager
} else {
return Err(iota_sdk::client::Error::SecretManagerMismatch.into());
};
stronghold.set_password(password).await?;
secret_manager.as_stronghold()?.set_password(password).await?;
Response::Ok
}
};
Expand Down

0 comments on commit 4791224

Please sign in to comment.