Skip to content

Commit

Permalink
Fixed code coverage hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre committed Oct 10, 2024
1 parent 3dbda99 commit 67e83a6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/meilisearch/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 67e83a6

Please sign in to comment.