From 695c2c6b99b650ad94eb028f4f9aed2ca853c9f7 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 14 Nov 2024 08:42:39 +0100 Subject: [PATCH] Cosmetic fix --- crates/milli/src/update/new/indexer/document_operation.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/milli/src/update/new/indexer/document_operation.rs b/crates/milli/src/update/new/indexer/document_operation.rs index d4f11389a..a164d099e 100644 --- a/crates/milli/src/update/new/indexer/document_operation.rs +++ b/crates/milli/src/update/new/indexer/document_operation.rs @@ -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) }; }