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

Improve indentation/readability.

parent ad7fdc0f
No related branches found
No related tags found
No related merge requests found
...@@ -282,12 +282,9 @@ module Geocoder ...@@ -282,12 +282,9 @@ module Geocoder
def earth_radius(units = nil) def earth_radius(units = nil)
units ||= Geocoder.config.units units ||= Geocoder.config.units
case units case units
when :km when :km; EARTH_RADIUS
EARTH_RADIUS when :mi; to_miles(EARTH_RADIUS)
when :mi when :nm; to_nautical_miles(EARTH_RADIUS)
to_miles(EARTH_RADIUS)
when :nm
to_nautical_miles(EARTH_RADIUS)
end end
end end
......
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