X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/baf10cd39289cd7e94a819305e46f43e85a136c6..5cbd4038edb32b0304bd766e70fc680ea447b52b:/app/controllers/geocoder_controller.rb diff --git a/app/controllers/geocoder_controller.rb b/app/controllers/geocoder_controller.rb index 0d39cdf0a..37cdc6557 100644 --- a/app/controllers/geocoder_controller.rb +++ b/app/controllers/geocoder_controller.rb @@ -140,9 +140,7 @@ class GeocoderController < ApplicationController end # get objects to excude - if params[:exclude] - exclude = "&exclude_place_ids=#{params[:exclude]}" - end + exclude = "&exclude_place_ids=#{params[:exclude]}" if params[:exclude] # ask nominatim response = fetch_xml("http:#{NOMINATIM_URL}search?format=xml&q=#{escape_query(query)}#{viewbox}#{exclude}&accept-language=#{http_accept_language.user_preferred_languages.join(',')}")