Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove duplicated Faraday::Retry::Middleware:
- ### Problem The Faraday::Retry::Middleware is added twice by Octokit when instantiating the Faraday::RackBuilder object. ```sh irb(main):001:0> Octokit.middleware => #<Faraday::RackBuilder:0x0000000107898700 @adapter=Faraday::Adapter::NetHttp, @handlers= [Faraday::Retry::Middleware, Faraday::Retry::Middleware, ... ``` ### Context The latest Faraday version in the 1.x serie added an alias for `Faraday::Request::Retry` https://github.com/lostisland/faraday/blob/824423ccbb534d0b0553c3a0b3f2fbb9b0d84c60/lib/faraday.rb#L33 ### Solution Use a elsif statement to avoid ending up with duplicated middleware
- Loading branch information