From ec295145a2d557d7a3d8575106e7d20ec905c8ea Mon Sep 17 00:00:00 2001 From: stve Date: Fri, 17 Feb 2017 15:40:29 -0500 Subject: [PATCH] ignore rubcop Style/GuardClause violation --- lib/instapaper/http/response.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/instapaper/http/response.rb b/lib/instapaper/http/response.rb index 15da2a5..234e6a7 100644 --- a/lib/instapaper/http/response.rb +++ b/lib/instapaper/http/response.rb @@ -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'