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 ...@@ -21,8 +21,8 @@ module Geocoder::Lookup
private # --------------------------------------------------------------- private # ---------------------------------------------------------------
def any_result?(query) def any_result?(doc)
fetch_data(query)['features'].any? doc['features'].any?
end end
def results(query) 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