Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudall committed Nov 26, 2023
1 parent 732d761 commit 4fe84da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openai.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def call(env)
raise e unless e.response.is_a?(Hash)

logger = Logger.new($stdout)
logger.formatter = proc do |severity, datetime, progname, msg|
logger.formatter = proc do |_severity, _datetime, _progname, msg|
"\033[31mOpenAI HTTP Error (spotted in ruby-openai #{VERSION}): #{msg}\n\033[0m"
end
logger.error(e.response[:body])
Expand Down

0 comments on commit 4fe84da

Please sign in to comment.