From b8d8757ef76c5fe30015b82240cf201b48135495 Mon Sep 17 00:00:00 2001 From: Olek Janiszewski <olek.janiszewski@gmail.com> Date: Sun, 23 Feb 2014 13:18:58 +0100 Subject: [PATCH] Fix unused variable warnings --- lib/geocoder/lookups/cloudmade.rb | 2 +- lib/geocoder/lookups/maxmind_local.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/geocoder/lookups/cloudmade.rb b/lib/geocoder/lookups/cloudmade.rb index a5d36177..afb6993e 100644 --- a/lib/geocoder/lookups/cloudmade.rb +++ b/lib/geocoder/lookups/cloudmade.rb @@ -24,7 +24,7 @@ module Geocoder::Lookup end def query_url_params(query) - params = { + { :query => query.sanitized_text, :return_location => true, :return_geometry => false diff --git a/lib/geocoder/lookups/maxmind_local.rb b/lib/geocoder/lookups/maxmind_local.rb index 1045b748..7f62aea4 100644 --- a/lib/geocoder/lookups/maxmind_local.rb +++ b/lib/geocoder/lookups/maxmind_local.rb @@ -7,7 +7,7 @@ module Geocoder::Lookup def initialize begin 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.' end @@ -38,4 +38,4 @@ module Geocoder::Lookup result.nil? ? [] : [result.to_hash] end end -end \ No newline at end of file +end -- GitLab