diff options
Diffstat (limited to 'atuin-client/src/history/store.rs')
-rw-r--r-- | atuin-client/src/history/store.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/atuin-client/src/history/store.rs b/atuin-client/src/history/store.rs index 0a2a2312..ea1cf47d 100644 --- a/atuin-client/src/history/store.rs +++ b/atuin-client/src/history/store.rs @@ -164,16 +164,7 @@ impl HistoryStore { for record in records.into_iter() { let hist = match record.version.as_str() { HISTORY_VERSION => { - let decrypted = record.decrypt::<PASETO_V4>(&self.encryption_key); - - let decrypted = match decrypted { - Ok(d) => d, - Err(e) => { - println!("failed to decrypt history: {e}"); - continue; - } - }; - + let decrypted = record.decrypt::<PASETO_V4>(&self.encryption_key)?; HistoryRecord::deserialize(&decrypted.data, HISTORY_VERSION) } version => bail!("unknown history version {version:?}"), |