change default for authorization to nil
This commit is contained in:
1 parent
18c4bab286
commit
b1f8ac3c0d
2 files changed
+8
-4
No files matched your search
@@ -57,7 +57,7 @@ module Google
|
||||
# Loads credentials and authorizes an client.
|
||||
# @return [Object] Signet::OAuth2::Client or NIL
|
||||
def authorize
|
||||
@authorization = false
|
||||
@authorization = nil
|
||||
cached_credentials = load_credentials
|
||||
if cached_credentials && cached_credentials.size > 0
|
||||
@authorization = Signet::OAuth2::Client.new(cached_credentials)
|
||||
|
||||
Reference in new issue
Block a user