Skip to content
Snippets Groups Projects
Commit b8d8757e authored by Olek Janiszewski's avatar Olek Janiszewski
Browse files

Fix unused variable warnings

parent cae3f8ce
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ module Geocoder::Lookup ...@@ -24,7 +24,7 @@ module Geocoder::Lookup
end end
def query_url_params(query) def query_url_params(query)
params = { {
:query => query.sanitized_text, :query => query.sanitized_text,
:return_location => true, :return_location => true,
:return_geometry => false :return_geometry => false
......
...@@ -7,7 +7,7 @@ module Geocoder::Lookup ...@@ -7,7 +7,7 @@ module Geocoder::Lookup
def initialize def initialize
begin begin
require 'geoip' require 'geoip'
rescue LoadError => e rescue LoadError
raise 'Could not load geoip dependency. To use MaxMind Local lookup you must add geoip gem to your Gemfile or have it installed in your system.' raise 'Could not load geoip dependency. To use MaxMind Local lookup you must add geoip gem to your Gemfile or have it installed in your system.'
end end
...@@ -38,4 +38,4 @@ module Geocoder::Lookup ...@@ -38,4 +38,4 @@ module Geocoder::Lookup
result.nil? ? [] : [result.to_hash] result.nil? ? [] : [result.to_hash]
end end
end end
end end
\ No newline at end of file
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