Skip to content

Commit b67e913

Browse files
cli: Load the keyring without checking for secret
This is useful for cases where the keyring might contain broken items.
1 parent f7f9f21 commit b67e913

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cli/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ impl Commands {
193193
};
194194

195195
let keyring = match (path, secret) {
196-
(Some(path), Some(secret)) => {
197-
Keyring::File(oo7::file::Keyring::load(path, secret).await?)
198-
}
196+
(Some(path), Some(secret)) => unsafe {
197+
Keyring::File(oo7::file::Keyring::load_unchecked(path, secret).await?)
198+
},
199199
(Some(_), None) => {
200200
return Err(Error::new("A keyring requires a secret."));
201201
}

0 commit comments

Comments
 (0)