Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Commit

Permalink
Revert "Proper string presence tests"
Browse files Browse the repository at this point in the history
This reverts commit d64796f.
  • Loading branch information
aevernon committed Feb 12, 2018
1 parent d64796f commit f10c583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commission_junction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ def item_detail(original_action_ids)
def extract_contents(response, first_level, second_level = nil)
cj_api = response['cj_api']

raise ArgumentError, 'cj api missing from response' if cj_api.blank?
raise ArgumentError, 'cj api missing from response' if cj_api.nil?

error_message = cj_api['error_message'].presence
error_message = cj_api['error_message']

raise ArgumentError, error_message if error_message

Expand Down

0 comments on commit f10c583

Please sign in to comment.