Skip to content

Commit

Permalink
Merge pull request Shopify#49 from Shopify/ltk/fix-error-specs
Browse files Browse the repository at this point in the history
Make Oktakit::Response::RaiseError#on_complete public
  • Loading branch information
ltk authored Jan 13, 2022
2 parents e588d28 + 3b02b32 commit c1b45ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/oktakit/response/raise_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ module Response
# This class raises an Oktakit-flavored exception based
# HTTP status codes returned by the API
class RaiseError < Faraday::Response::Middleware
private

def on_complete(response)
if (error = Oktakit::Error.from_response(response))
raise error
Expand Down

0 comments on commit c1b45ba

Please sign in to comment.