Skip to content

Commit 67e83a6

Browse files
author
Andre
committed
Fixed code coverage hint
1 parent 3dbda99 commit 67e83a6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/meilisearch/index.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,6 @@ def search(query, options = {})
273273

274274
# document_id: Identifier of the target document
275275
def search_similar_documents(document_id, **options)
276-
if document_id.nil? || document_id.to_s.empty?
277-
raise MeiliSearch::InvalidDocumentId, 'document_id cannot be empty or nil'
278-
end
279-
280276
options.merge!(id: document_id)
281277
options = Utils.transform_attributes(options)
282278

0 commit comments

Comments
 (0)