Skip to content

Commit

Permalink
Merge pull request #1448 from Edouard-chin/ec-same-retry-middleware
Browse files Browse the repository at this point in the history
Remove duplicated Faraday::Retry::Middleware:
  • Loading branch information
timrogers committed Jul 1, 2022
2 parents 054a94a + f0719d8 commit f06f830
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/octokit/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ module Default
# so we use it only when it's available.
if defined?(Faraday::Request::Retry)
builder.use Faraday::Request::Retry, exceptions: [Octokit::ServerError]
end
if defined?(Faraday::Retry::Middleware)
elsif defined?(Faraday::Retry::Middleware)
builder.use Faraday::Retry::Middleware, exceptions: [Octokit::ServerError]
end

Expand Down

0 comments on commit f06f830

Please sign in to comment.