Skip to content
Snippets Groups Projects
Commit 46a49fdd authored by Alex Reisner's avatar Alex Reisner
Browse files

No need to call 'first'.

This should have been part of commit 8cc460f9.
parent 34f410ad
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ module Geocoder
# but return a Geocoder::Result for consistency
@location = Geocoder::Result::Freegeoip.new("ip" => ip)
else
@location = Geocoder.search(ip).first
@location = Geocoder.search(ip)
end
end
@location
......
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