Skip to content

Commit

Permalink
Avoid shadowing.
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Zapparov <[email protected]>
  • Loading branch information
ce07c3 and ixti authored Dec 14, 2020
1 parent f78ab0a commit 90e7ed8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/webmock/http_lib_adapters/http_rb/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ def perform(request, options)
return __perform__(request, options) unless webmock_enabled?

response = WebMockPerform.new(request) { __perform__(request, options) }.exec
response = options.features.inject(response) do |response, (_name, feature)|
feature.wrap_response(response)
end

options.features.each { |_name, feature| response = feature.wrap_response(response) }

response
end

Expand Down

0 comments on commit 90e7ed8

Please sign in to comment.