Browse files

Fix unused variable warnings

  • Loading branch information...
1 parent 878bc3c commit ee0a9233075a67deb0dc822e643adf08b0a503ad @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
View
2 lib/geocoder/lookups/cloudmade.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
View
4 lib/geocoder/lookups/maxmind_local.rb
@@ -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 ee0a923

Please sign in to comment.