Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal authored and gitbutler-client committed Nov 14, 2024
1 parent 4aab464 commit 7383c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/config/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub struct Args {
impl Args {
pub fn read_key(&self) -> Result<Key, key::Error> {
if let Some(public_key) = self.public_key.as_ref() {
return Ok(public_key.parse()?);
return public_key.parse();
};
if let Ok(secret_key) = std::env::var("SOROBAN_SECRET_KEY") {
Ok(Key::Secret(Secret::SecretKey { secret_key }))
Expand Down

0 comments on commit 7383c50

Please sign in to comment.