From 6b7762a554a61f4a268c7c3fe0df13ec4072a802 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Thu, 6 Feb 2025 14:26:31 +0100 Subject: [PATCH] Fix `attribute accessor as module_function` warning This code was introduced in 1354b076a159d223b737e5b1f27dde0463eb5292. `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. --- lib/googleauth/helpers/connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/googleauth/helpers/connection.rb b/lib/googleauth/helpers/connection.rb index a07a4b52..d7e5d354 100644 --- a/lib/googleauth/helpers/connection.rb +++ b/lib/googleauth/helpers/connection.rb @@ -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