lib/google/cloud/logging.rb in google-cloud-logging-2.3.3 vs lib/google/cloud/logging.rb in google-cloud-logging-2.4.0
- old
+ new
@@ -86,14 +86,14 @@
scope: nil,
timeout: nil,
endpoint: nil,
project: nil,
keyfile: nil
- project_id ||= (project || default_project_id)
+ project_id ||= project || default_project_id
scope ||= configure.scope
timeout ||= configure.timeout
endpoint ||= configure.endpoint
- credentials ||= (keyfile || default_credentials(scope: scope))
+ credentials ||= keyfile || default_credentials(scope: scope)
unless credentials.is_a? Google::Auth::Credentials
credentials = Logging::Credentials.new credentials, scope: scope
end