Skip to content

Commit

Permalink
chore: Fix a few lingering rubocop warnings (#28828)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Jan 31, 2025
1 parent 7602b35 commit 6d5be25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google-cloud-bigquery/lib/google/cloud/bigquery/service.rb
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

0 comments on commit 6d5be25

Please sign in to comment.