Skip to content

Commit

Permalink
Fix attribute accessor as module_function warning
Browse files Browse the repository at this point in the history
This code was introduced in 1354b07.

`module_function` cause the next methods to be defined as both
class methods and private instance methods, but the class method
part is never used, hence directly declaring them as private
is simpler and avoid the warning.
  • Loading branch information
byroot committed Feb 6, 2025
1 parent a561d9d commit 6b7762a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/googleauth/helpers/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Auth
module Helpers
# Connection provides a Faraday connection for use with Google::Auth.
module Connection
module_function
private

attr_accessor :default_connection

Expand Down

0 comments on commit 6b7762a

Please sign in to comment.