More refactoring to please rubocop

This commit is contained in:
Trung Lê committed 2015-04-08 11:10:25 +10:00
1 parent 377c679586
commit 66ae035cce
2 files changed
+3 -3

No files matched your search

+2 -1
View File
@@ -87,7 +87,8 @@ END
# @param scope [string|array|nil] the scope(s) to access
# @param options [hash] allows override of the connection being used
def get_application_default(scope = nil, options = {})
creds = DefaultCredentials.from_env(scope) || DefaultCredentials.from_well_known_path(scope)
creds = DefaultCredentials.from_env(scope) ||
DefaultCredentials.from_well_known_path(scope)
return creds unless creds.nil?
fail NOT_FOUND_ERROR unless GCECredentials.on_gce?(options)
GCECredentials.new
+1 -2
View File
@@ -45,8 +45,7 @@ describe Signet::OAuth2::Client do
scope: 'https://www.googleapis.com/auth/userinfo.profile',
issuer: 'app@example.com',
audience: 'https://accounts.google.com/o/oauth2/token',
signing_key: @key
)
signing_key: @key)
end
def make_auth_stubs(opts)