Skip to content

Commit

Permalink
replace present with !empty
Browse files Browse the repository at this point in the history
  • Loading branch information
phenchaw committed Oct 6, 2023
1 parent b536cd1 commit b43f102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/payroll_hero/api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(token, base_url, cookies = {})
headers = {
'User-Agent' => user_agent_string,
}
if cookies.present?
unless cookies.empty?
headers.merge!({ 'Cookie' => (cookies.map{ |key, value| "#{key}=#{value}" }.join('; ')) })
end
params = {
Expand Down

0 comments on commit b43f102

Please sign in to comment.