Skip to content

Commit

Permalink
rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
phenchaw committed Oct 6, 2023
1 parent b43f102 commit bece0ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/payroll_hero/api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bece0ad

Please sign in to comment.