Skip to content

Commit

Permalink
make Rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Roguelazer committed Oct 14, 2023
1 parent 633d554 commit 70eaf20
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/faraday/adapter/typhoeus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ def request(env)
end
end

env[:typhoeus_timings] = %w[appconnect connect namelookup pretransfer redirect starttransfer total].map do |key|
[key, resp.send("#{key}_time")]
end.to_h
env[:typhoeus_timings] = %w[
appconnect connect namelookup pretransfer redirect starttransfer total
].to_h do |key|
[key.to_sym, resp.public_send("#{key}_time")]
end

save_response(env, resp.code, resp.body, nil, resp.status_message) do |response_headers|
response_headers.parse resp.response_headers
Expand Down

0 comments on commit 70eaf20

Please sign in to comment.