Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Nov 28, 2023
1 parent f0c4e79 commit aa26c78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/stripe/api_operations/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def execute_resource_request(method, url,
)
end

def execute_resource_request_stream(method, url,
def execute_resource_request_stream(method, url,
params = {}, opts = {}, usage = [],
&read_body_chunk_block)
execute_resource_request_internal(
Expand Down Expand Up @@ -67,7 +67,7 @@ def execute_resource_request_stream(method, url,
[resp, opts_to_persist]
end

# TODO (major)
# TODO: (major)
# This method used to be called `request`, but it's such a short name
# that it eventually conflicted with the name of a field on an API
# resource (specifically, `Event#request`), so it was renamed to
Expand Down
3 changes: 1 addition & 2 deletions lib/stripe/stripe_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ def self.maybe_gc_connection_managers

http_resp =
execute_request_with_rescues(method, api_base, headers, usage, context) do

self.class
.default_connection_manager(config)
.execute_request(method, url,
Expand Down Expand Up @@ -1048,7 +1047,7 @@ def initialize(request_id, request_duration_ms, usage: [])
end

def payload
{ request_id: request_id, request_duration_ms: request_duration_ms, usage: usage}
{ request_id: request_id, request_duration_ms: request_duration_ms, usage: usage }
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/stripe/stripe_client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ class StripeClientTest < Test::Unit::TestCase

cus = Stripe::Customer.new("cus_xyz")
cus.description = "hello"
cus.save()
cus.save
Stripe::Charge.list

assert(!trace_metrics_header.nil?)
Expand Down

0 comments on commit aa26c78

Please sign in to comment.