Skip to content

Commit 8e35f5e

Browse files
authored
Merge branch 'master' into fix/cli-commands
2 parents 367cb85 + e2d5497 commit 8e35f5e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cli/src/handler.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,7 @@ impl CliHandler {
8282
let config_file = solana_cli_config::CONFIG_FILE
8383
.as_ref()
8484
.ok_or_else(|| anyhow!("unable to get config file path"))?;
85-
match Config::load(config_file) {
86-
Ok(config) => read_keypair_file(config.keypair_path.as_str())
87-
.map_err(|e| anyhow!("Failed to read keypair path: {e:?}"))?,
88-
Err(_) => read_keypair_file(args.keypair_path.clone().unwrap())
89-
.map_err(|e| anyhow!("Failed to read keypair path: {e:?}"))?,
90-
}
85+
Config::load(config_file)?
9186
}
9287
};
9388

0 commit comments

Comments
 (0)