We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80b711b commit d8817a5Copy full SHA for d8817a5
lib/finch_api/client.rb
@@ -58,7 +58,9 @@ class Client < FinchAPI::Internal::Transport::BaseClient
58
#
59
# @return [Hash{String=>String}]
60
private def auth_headers
61
- {**bearer_auth, **basic_auth}
+ return bearer_auth unless bearer_auth.empty?
62
+ return basic_auth unless basic_auth.empty?
63
+ {}
64
end
65
66
# @api private
0 commit comments