From 67e83a6f97721d8435ee1454c7babbed68821194 Mon Sep 17 00:00:00 2001 From: Andre <> Date: Thu, 10 Oct 2024 18:24:28 +0200 Subject: [PATCH] Fixed code coverage hint --- lib/meilisearch/index.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/meilisearch/index.rb b/lib/meilisearch/index.rb index 96b45bea..2032787f 100644 --- a/lib/meilisearch/index.rb +++ b/lib/meilisearch/index.rb @@ -273,10 +273,6 @@ def search(query, options = {}) # document_id: Identifier of the target document def search_similar_documents(document_id, **options) - if document_id.nil? || document_id.to_s.empty? - raise MeiliSearch::InvalidDocumentId, 'document_id cannot be empty or nil' - end - options.merge!(id: document_id) options = Utils.transform_attributes(options)