mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-06 04:36:32 +00:00
Remove unwrap
This commit is contained in:
@ -533,7 +533,8 @@ impl IndexScheduler {
|
|||||||
let (timestamp, data) = i?;
|
let (timestamp, data) = i?;
|
||||||
|
|
||||||
if let Some(to_remove) = to_remove.remove(×tamp) {
|
if let Some(to_remove) = to_remove.remove(×tamp) {
|
||||||
let mut current = data.decode().unwrap(); // TODO
|
let mut current =
|
||||||
|
data.decode().map_err(|e| Error::Anyhow(anyhow::anyhow!(e)))?;
|
||||||
current -= &to_remove;
|
current -= &to_remove;
|
||||||
|
|
||||||
if current.is_empty() {
|
if current.is_empty() {
|
||||||
|
Reference in New Issue
Block a user