rubocop: fix offences of the Lint/RescueException cop
This commit is contained in:
parent
25fbc39d11
commit
850ac861d0
|
@ -13,11 +13,6 @@ Gemspec/RequiredRubyVersion:
|
|||
Exclude:
|
||||
- 'pry.gemspec'
|
||||
|
||||
# Offense count: 1
|
||||
Lint/RescueException:
|
||||
Exclude:
|
||||
- 'lib/pry/color_printer.rb'
|
||||
|
||||
# Offense count: 1
|
||||
Lint/ReturnInVoidContext:
|
||||
Exclude:
|
||||
|
|
|
@ -43,7 +43,7 @@ class Pry
|
|||
|
||||
begin
|
||||
str = obj.inspect
|
||||
rescue Exception
|
||||
rescue StandardError
|
||||
# Read the class name off of the singleton class to provide a default
|
||||
# inspect.
|
||||
singleton = class << obj; self; end
|
||||
|
|
Loading…
Reference in New Issue