Skip to content

Commit

Permalink
no ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Mar 12, 2024
1 parent e543e97 commit 440a296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,10 @@ pub async fn new_wallet(cli: Cli) -> Result<Option<Wallet>, Error> {
// init new wallet with default init parameters
let mut init_params = InitParameters::default();

if let Some(stronghold_snapshot_path) = std::env::var("STRONGHOLD_SNAPSHOT_PATH").ok() {
if let Ok(stronghold_snapshot_path) = std::env::var("STRONGHOLD_SNAPSHOT_PATH") {
init_params.stronghold_snapshot_path = stronghold_snapshot_path;
}
if let Some(node_url) = std::env::var("NODE_URL").ok() {
if let Ok(node_url) = std::env::var("NODE_URL") {
init_params.node_url = node_url;
}

Expand Down

0 comments on commit 440a296

Please sign in to comment.