Skip to content
Snippets Groups Projects
Commit ed935c71 authored by Thu Trang Pham's avatar Thu Trang Pham
Browse files

Simplify if statement in latlon.io lookup

parent 615ce236
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ module Geocoder::Lookup
end
def query_url(query)
"#{protocol}://latlon.io/api/v1/#{if query.reverse_geocode? then 'reverse_' end}geocode?#{url_query_string(query)}"
"#{protocol}://latlon.io/api/v1/#{'reverse_' if query.reverse_geocode?}geocode?#{url_query_string(query)}"
end
private # ---------------------------------------------------------------
......
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