Skip to content

Commit 02bba5b

Browse files
committed
beautify
1 parent c963243 commit 02bba5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/geocoder/lookups/amazon_location_service.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ def results(query)
1010
# Aws::ParamValidator raises ArgumentError on missing required keys
1111
params.merge!(index_name: configuration[:index_name])
1212

13+
# Aws::ParamValidator raises ArgumentError on unexpected keys
14+
params.delete(:lookup)
15+
1316
# Inherit language from configuration
1417
params.merge!(language: configuration[:language])
1518

16-
# Aws::ParamValidator raises ArgumentError on unexpected keys
17-
params.delete(:lookup)
18-
1919
resp = if query.reverse_geocode?
2020
client.search_place_index_for_position(params.merge(position: query.coordinates.reverse))
2121
else
2222
client.search_place_index_for_text(params.merge(text: query.text))
2323
end
24-
24+
2525
resp.results
2626
end
2727

0 commit comments

Comments
 (0)