diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-03-24 14:30:00 +0200 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2019-03-24 14:30:00 +0200 |
commit | b85073f80833b4377ea92bfcfb93cb03a2773559 (patch) | |
tree | d6b27a3eab4e76b8cd4fb0c82327f9fc1e9b85ee /lib/pry/config.rb | |
parent | b938bddf0a0825ee3f61768bd95dc2d80c2714b7 (diff) | |
download | pry-b85073f80833b4377ea92bfcfb93cb03a2773559.tar.gz |
rubocop: fix offences of the Style/CaseEquality cop
Diffstat (limited to 'lib/pry/config.rb')
-rw-r--r-- | lib/pry/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/config.rb b/lib/pry/config.rb index 6c497314..fd6d92b9 100644 --- a/lib/pry/config.rb +++ b/lib/pry/config.rb @@ -28,7 +28,7 @@ class Pry # Will only show the first line of the backtrace exception_handler: proc do |output, exception, _| - if UserError === exception && SyntaxError === exception + if exception.is_a?(UserError) && exception.is_a?(SyntaxError) output.puts "SyntaxError: #{exception.message.sub(/.*syntax error, */m, '')}" else output.puts "#{exception.class}: #{exception.message}" |