mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +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
|
||||
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)
|
||||
else
|
||||
raise Instapaper::Error, 'Unknown Error'
|
||||
|
|
|
|||
Loading…
Reference in a new issue