From ca8af0e9041e5189ed931d601ad44f4fa9a2056b Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 15 Oct 2018 16:35:24 +0200 Subject: [PATCH] Use parentheses --- app/lib/api_adresse/address_retriever.rb | 2 +- app/lib/api_adresse/driver.rb | 2 +- app/lib/api_adresse/point_retriever.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/api_adresse/address_retriever.rb b/app/lib/api_adresse/address_retriever.rb index 20ca589e1..8bbd9ab38 100644 --- a/app/lib/api_adresse/address_retriever.rb +++ b/app/lib/api_adresse/address_retriever.rb @@ -13,7 +13,7 @@ module ApiAdresse private def driver - @driver ||= ApiAdresse::Driver.new @address, 5 + @driver ||= ApiAdresse::Driver.new(@address, 5) end def convert_driver_result_to_full_address diff --git a/app/lib/api_adresse/driver.rb b/app/lib/api_adresse/driver.rb index 71c15a18b..47b8a755d 100644 --- a/app/lib/api_adresse/driver.rb +++ b/app/lib/api_adresse/driver.rb @@ -8,7 +8,7 @@ module ApiAdresse end def call - RestClient.get api_url, params: { q: @address, limit: @limit } + RestClient.get(api_url, params: { q: @address, limit: @limit }) rescue RestClient::ServiceUnavailable nil end diff --git a/app/lib/api_adresse/point_retriever.rb b/app/lib/api_adresse/point_retriever.rb index 71b10565f..a788f70ab 100644 --- a/app/lib/api_adresse/point_retriever.rb +++ b/app/lib/api_adresse/point_retriever.rb @@ -13,7 +13,7 @@ module ApiAdresse private def driver - @driver ||= ApiAdresse::Driver.new @address + @driver ||= ApiAdresse::Driver.new(@address) end def convert_driver_result_to_point