diff --git a/lib/octokit/response/feed_parser.rb b/lib/octokit/response/feed_parser.rb index 77a880fd7..b3d1cd4eb 100644 --- a/lib/octokit/response/feed_parser.rb +++ b/lib/octokit/response/feed_parser.rb @@ -7,8 +7,6 @@ module Response # Parses RSS and Atom feed responses. class FeedParser < Faraday::Response::Middleware - private - def on_complete(env) if env[:response_headers]["content-type"] =~ /(\batom|\brss)/ require 'rss' diff --git a/lib/octokit/response/raise_error.rb b/lib/octokit/response/raise_error.rb index 31920e9ec..9da2a1a26 100644 --- a/lib/octokit/response/raise_error.rb +++ b/lib/octokit/response/raise_error.rb @@ -9,8 +9,6 @@ module Response # HTTP status codes returned by the API class RaiseError < Faraday::Response::Middleware - private - def on_complete(response) if error = Octokit::Error.from_response(response) raise error