mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-04-27 14:57:44 +00:00
ignore rubcop Style/GuardClause violation
This commit is contained in:
parent
32e65b12af
commit
ec295145a2
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ module Instapaper
|
||||||
def fail_if_http_error
|
def fail_if_http_error
|
||||||
return if response.status.ok?
|
return if response.status.ok?
|
||||||
|
|
||||||
if Instapaper::Error::CODES.include?(response.status.code)
|
if Instapaper::Error::CODES.include?(response.status.code) # rubocop:disable Style/GuardClause
|
||||||
raise Instapaper::Error.from_response(response.status.code, path)
|
raise Instapaper::Error.from_response(response.status.code, path)
|
||||||
else
|
else
|
||||||
raise Instapaper::Error, 'Unknown Error'
|
raise Instapaper::Error, 'Unknown Error'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue