Commit 4811eed7 authored by Robert Speicher's avatar Robert Speicher

Resolve lib/api/search.rb

parent 210722b6
......@@ -37,15 +37,12 @@ module API
end
def process_results(results)
<<<<<<< HEAD
return [] if results.empty?
if results.is_a?(Elasticsearch::Model::Response::Response)
return paginate(results).map { |blob| Gitlab::Elastic::SearchResults.parse_search_result(blob) }
end
=======
>>>>>>> upstream/master
paginate(results)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment