ignore rubcop Style/GuardClause violation

This commit is contained in:
stve 2017-02-17 15:40:29 -05:00
parent 32e65b12af
commit ec295145a2
No known key found for this signature in database
GPG key ID: FDAF2BA50D34F744

View file

@ -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'