Cosmetic fix

This commit is contained in:
Louis Dureuil 2024-11-14 08:42:39 +01:00
parent 40dd25d6b2
commit 695c2c6b99
No known key found for this signature in database

View File

@ -356,11 +356,11 @@ impl MergeChanges for MergeDocumentForUpdates {
let has_deletion = last_deletion.is_some();
if operations.is_empty() {
return if !is_new {
return if is_new {
Ok(None)
} else {
let deletion = Deletion::create(docid, external_docid);
Ok(Some(DocumentChange::Deletion(deletion)))
} else {
Ok(None)
};
}