Skip to content

Commit

Permalink
Fix erroneous variable reference in ParseSurveyGizmo#on_complete call…
Browse files Browse the repository at this point in the history
…back
  • Loading branch information
nicduke38degrees committed Aug 3, 2023
1 parent f769b6f commit 697531c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/survey_gizmo/faraday_middleware/parse_survey_gizmo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ParseSurveyGizmo < Faraday::Middleware

def on_complete(env)
fail RateLimitExceededError if env.status == 429
fail BadResponseError, "Bad response code #{env.status} in #{environment.inspect}" unless env.status == 200
fail BadResponseError, "Bad response code #{env.status} in #{env.inspect}" unless env.status == 200
fail BadResponseError, env.body['message'] unless env.body['result_ok'] && env.body['result_ok'].to_s =~ /^true$/i

process_response(env)
Expand Down

0 comments on commit 697531c

Please sign in to comment.