Merge pull request #1966 from pry/rubocop-lint-rescue-exception

rubocop: fix offences of the Lint/RescueException cop
This commit is contained in:
Kyrylo Silin 2019-03-04 00:31:17 +02:00 committed by GitHub
commit 8e7ae26825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

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

View File

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