Permalink
Browse files

Fix unused variable warnings

  • Loading branch information...
1 parent cae3f8c commit b8d8757ef76c5fe30015b82240cf201b48135495 @exviva committed Feb 23, 2014
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/geocoder/lookups/cloudmade.rb
  2. +2 −2 lib/geocoder/lookups/maxmind_local.rb
@@ -24,7 +24,7 @@ def results(query)
end
def query_url_params(query)
- params = {
+ {
:query => query.sanitized_text,
:return_location => true,
:return_geometry => false
@@ -7,7 +7,7 @@ class MaxmindLocal < Base
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 @@ def results(query)
result.nil? ? [] : [result.to_hash]
end
end
-end
+end

0 comments on commit b8d8757

Please sign in to comment.