Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix a few lingering rubocop warnings #28828

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def service
service.client_options.send_timeout_sec = timeout
service.request_options.retries = 0 # handle retries in #execute
service.request_options.header ||= {}
service.request_options.header["x-goog-api-client"] = \
service.request_options.header["x-goog-api-client"] =
"gl-ruby/#{RUBY_VERSION} gccl/#{Google::Cloud::Bigquery::VERSION}"
service.request_options.query ||= {}
service.request_options.query["prettyPrint"] = false
Expand Down
3 changes: 1 addition & 2 deletions google-cloud-storage/lib/google/cloud/storage/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,7 @@ def encryption_key_headers options, key, copy_source: false
headers = (options[:header] ||= {})
headers["x-goog-#{source}encryption-algorithm"] = "AES256"
headers["x-goog-#{source}encryption-key"] = Base64.strict_encode64 key
headers["x-goog-#{source}encryption-key-sha256"] = \
Base64.strict_encode64 key_sha256
headers["x-goog-#{source}encryption-key-sha256"] = Base64.strict_encode64 key_sha256
options
end

Expand Down