mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Cosmetic fix
This commit is contained in:
parent
40dd25d6b2
commit
695c2c6b99
@ -356,11 +356,11 @@ impl MergeChanges for MergeDocumentForUpdates {
|
|||||||
let has_deletion = last_deletion.is_some();
|
let has_deletion = last_deletion.is_some();
|
||||||
|
|
||||||
if operations.is_empty() {
|
if operations.is_empty() {
|
||||||
return if !is_new {
|
return if is_new {
|
||||||
|
Ok(None)
|
||||||
|
} else {
|
||||||
let deletion = Deletion::create(docid, external_docid);
|
let deletion = Deletion::create(docid, external_docid);
|
||||||
Ok(Some(DocumentChange::Deletion(deletion)))
|
Ok(Some(DocumentChange::Deletion(deletion)))
|
||||||
} else {
|
|
||||||
Ok(None)
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user