Skip to content
Snippets Groups Projects
Commit 9d48fb85 authored by Alex Reisner's avatar Alex Reisner
Browse files

Avoid calling fetch_data within method.

parent 4e9f1139
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,8 @@ module Geocoder::Lookup
private # ---------------------------------------------------------------
def any_result?(query)
fetch_data(query)['features'].any?
def any_result?(doc)
doc['features'].any?
end
def results(query)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment