aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/sync.rs
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2023-09-26 14:52:45 +0100
committerGitHub <noreply@github.com>2023-09-26 14:52:45 +0100
commitfc1a48a4f204dfe77bd8d4f82cfb3e64ade9d028 (patch)
tree72239a49993bfb023c8979c5ff4821ca3878b708 /atuin-client/src/sync.rs
parentbetter sync error messages (#1254) (diff)
downloadatuin-fc1a48a4f204dfe77bd8d4f82cfb3e64ade9d028.zip
handle missing entries (fixes #1236) (#1253)
* fix #1236 * lints
Diffstat (limited to 'atuin-client/src/sync.rs')
-rw-r--r--atuin-client/src/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/atuin-client/src/sync.rs b/atuin-client/src/sync.rs
index bd2ff474..ebfb47c1 100644
--- a/atuin-client/src/sync.rs
+++ b/atuin-client/src/sync.rs
@@ -109,7 +109,7 @@ async fn sync_download(
for i in remote_status.deleted {
// we will update the stored history to have this data
// pretty much everything can be nullified
- if let Ok(h) = db.load(i.as_str()).await {
+ if let Some(h) = db.load(i.as_str()).await? {
db.delete(h).await?;
} else {
info!(