mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Lint/RescueException cop
This commit is contained in:
parent
25fbc39d11
commit
850ac861d0
2 changed files with 1 additions and 6 deletions
|
@ -13,11 +13,6 @@ Gemspec/RequiredRubyVersion:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'pry.gemspec'
|
- 'pry.gemspec'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
Lint/RescueException:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/pry/color_printer.rb'
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
Lint/ReturnInVoidContext:
|
Lint/ReturnInVoidContext:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|
|
@ -43,7 +43,7 @@ class Pry
|
||||||
|
|
||||||
begin
|
begin
|
||||||
str = obj.inspect
|
str = obj.inspect
|
||||||
rescue Exception
|
rescue StandardError
|
||||||
# Read the class name off of the singleton class to provide a default
|
# Read the class name off of the singleton class to provide a default
|
||||||
# inspect.
|
# inspect.
|
||||||
singleton = class << obj; self; end
|
singleton = class << obj; self; end
|
||||||
|
|
Loading…
Add table
Reference in a new issue