Skip to content

Commit 2da99b9

Browse files
committed
Fix ruby warning: * interpreted as argument prefix
I see this warning on MRI 3.3: ```console ruby/3.3.7/lib/ruby/gems/3.3.0/gems/ruby-openai-6.3.1/lib/openai/client.rb:14: warning: `*' interpreted as argument prefix ``` Using explicit parenthesis fixes the issue
1 parent bc189bb commit 2da99b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openai/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Client
55
SENSITIVE_ATTRIBUTES = %i[@access_token @admin_token @organization_id @extra_headers].freeze
66
CONFIG_KEYS = %i[access_token admin_token api_type api_version extra_headers
77
log_errors organization_id request_timeout uri_base].freeze
8-
attr_reader *CONFIG_KEYS, :faraday_middleware
8+
attr_reader(*CONFIG_KEYS, :faraday_middleware)
99
attr_writer :access_token
1010

1111
def initialize(config = {}, &faraday_middleware)

0 commit comments

Comments
 (0)