Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Ruby style guide :) #923

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/tire/results/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def results
return [] if failure?
@results ||= begin
hits = @response['hits']['hits'].map { |d| d.update '_type' => Utils.unescape(d['_type']) }
unless @options[:load]
__get_results_without_load(hits)
else
if @options[:load]
__get_results_with_load(hits)
else
__get_results_without_load(hits)
end
end
end
Expand Down