Skip to content

Commit bd6ca85

Browse files
committed
fix: remove unwrap
1 parent 0a0d472 commit bd6ca85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result<String, Error> {
897897
db_file,
898898
wallet_name.clone().unwrap_or("wallet1".to_string()),
899899
)
900-
.unwrap();
900+
.map_err(PersisterError::from)?;
901901
log::debug!("Redb database opened successfully");
902902
Persister::RedbStore(store)
903903
}

0 commit comments

Comments
 (0)