diff --git a/lib/geocoder.rb b/lib/geocoder.rb index 6d1fb60ef94577dc90391b823622bb88efbbab8c..d3578260d6d6e2f9e1b6f451090635c42da62279 100644 --- a/lib/geocoder.rb +++ b/lib/geocoder.rb @@ -323,7 +323,6 @@ module Geocoder # Returns array [lat,lon] if found, nil if not found or if network error. # def self.fetch_coordinates(query) - return nil if query.blank? return nil unless doc = self.search(query) # make sure search found a result @@ -342,6 +341,7 @@ module Geocoder # This method is not intended for general use (prefer Geocoder.search). # def self._fetch_xml(query) + return nil if query.blank? params = { :address => query, :sensor => "false"