Skip to content

Commit 55e50c6

Browse files
committed
[MODEL] Removed useless variable assignment in Elasticsearch::Model::Response::Results#results
Closes elastic#325
1 parent 2f9f7a5 commit 55e50c6

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-model/lib/elasticsearch/model/response

1 file changed

+1
-1
lines changed

elasticsearch-model/lib/elasticsearch/model/response/results.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def initialize(klass, response, options={})
2222
#
2323
def results
2424
# TODO: Configurable custom wrapper
25-
@results = response.response['hits']['hits'].map { |hit| Result.new(hit) }
25+
response.response['hits']['hits'].map { |hit| Result.new(hit) }
2626
end
2727

2828
end

0 commit comments

Comments
 (0)