From bece0ade01b8ce3e236da242b501d02f859c2a7c Mon Sep 17 00:00:00 2001 From: "P.T" Date: Fri, 6 Oct 2023 20:24:34 +0200 Subject: [PATCH] rubocop fixes --- lib/payroll_hero/api/client.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/payroll_hero/api/client.rb b/lib/payroll_hero/api/client.rb index 5b68a4b..15d1986 100644 --- a/lib/payroll_hero/api/client.rb +++ b/lib/payroll_hero/api/client.rb @@ -12,11 +12,9 @@ def initialize(token, base_url, cookies = {}) headers = { 'User-Agent' => user_agent_string, } - unless cookies.empty? - headers.merge!({ 'Cookie' => (cookies.map{ |key, value| "#{key}=#{value}" }.join('; ')) }) - end + headers.merge!({ 'Cookie' => cookies.map { |key, value| "#{key}=#{value}" }.join('; ') }) unless cookies.empty? params = { - token: token, + token:, } @client = Faraday.new(url: base_url) do |faraday| faraday.request :url_encoded