Skip to content

Commit e2d5497

Browse files
authored
Fix lint (#174)
1 parent bf8c04a commit e2d5497

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cli/src/handler.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +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:?}"))?,
85+
Config::load(config_file)?
9086
}
9187
};
9288

0 commit comments

Comments
 (0)