Skip to content

Commit

Permalink
rubocop Style/CaseLikeIf enabled as bug was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Aug 3, 2022
1 parent 76292b0 commit a88d567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Expand Up @@ -176,7 +176,7 @@ Style/BisectedAttrAccessor:
Enabled: true

Style/CaseLikeIf:
Enabled: false # Here be dragons https://github.com/rubocop-hq/rubocop/issues/8508
Enabled: true

Style/ExplicitBlockArgument:
Enabled: true
Expand Down
3 changes: 1 addition & 2 deletions app/models/symphony_reader.rb
Expand Up @@ -69,12 +69,11 @@ def fetch_marc_response

def symphony_response(url)
resp = client.get(url)
raise NotFound, "Record not found in Symphony. Catkey: #{catkey}. API call: #{url}" if resp.status == 404

if resp.status == 200
validate_response(resp)
return resp
elsif resp.status == 404
raise NotFound, "Record not found in Symphony. Catkey: #{catkey}. API call: #{url}"
else
errmsg = "Got HTTP Status-Code #{resp.status} calling #{url}: #{resp.body}"
end
Expand Down

0 comments on commit a88d567

Please sign in to comment.