Skip to content

Commit 9521a41

Browse files
committed
f Drop unnecessary Oks
1 parent ce7819a commit 9521a41

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/io/sqlite_store.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ impl KVStore for SqliteStore {
116116
sql_tx.commit().map_err(|_| {
117117
let msg = format!("Failed to commit transaction");
118118
std::io::Error::new(std::io::ErrorKind::Other, msg)
119-
})?;
120-
121-
Ok(())
119+
})
122120
}
123121

124122
fn remove(&self, namespace: &str, key: &str) -> std::io::Result<bool> {
@@ -192,8 +190,7 @@ impl KVStorePersister for SqliteStore {
192190
})?;
193191
let key = dest_without_namespace.display().to_string();
194192

195-
self.write(&namespace, &key, &object.encode())?;
196-
Ok(())
193+
self.write(&namespace, &key, &object.encode())
197194
}
198195
}
199196

0 commit comments

Comments
 (0)