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

Don't detect empty query.

Instead detect further up the chain (before calling the Lookup).
parent 42a1bad4
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,6 @@ module Geocoder ...@@ -13,7 +13,6 @@ module Geocoder
# for reverse geocoding. # for reverse geocoding.
# #
def search(*args) def search(*args)
return [] if args[0].nil? || args[0] == ""
if res = results(args.join(","), args.size == 2) if res = results(args.join(","), args.size == 2)
res.map{ |r| result_class.new(r) } res.map{ |r| result_class.new(r) }
else else
......
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