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