mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +00:00
fix rubocop warnings
This commit is contained in:
parent
cc49e06d87
commit
ff211c7700
2 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ module Instapaper
|
|||
def fail_if_error_unparseable_response(response)
|
||||
response.parse(:json)
|
||||
rescue JSON::ParserError
|
||||
fail Instapaper::Error::ServiceUnavailableError
|
||||
raise Instapaper::Error::ServiceUnavailableError
|
||||
end
|
||||
|
||||
def fail_if_error_in_body(response)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ require 'irb'
|
|||
require 'irb/completion'
|
||||
|
||||
project_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||
$:.unshift project_lib unless $:.include?(project_lib)
|
||||
$LOAD_PATH.unshift project_lib unless $LOAD_PATH.include?(project_lib)
|
||||
|
||||
require 'instapaper'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue