summaryrefslogtreecommitdiff
path: root/lib/pry/commands/cat.rb
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-03-01 01:28:12 +0200
committerKyrylo Silin <silin@kyrylo.org>2019-03-01 01:28:12 +0200
commitf22187c09dca0625e7a401ed45ec1697745340c4 (patch)
tree6c9634944786f86737995293fb090b7b3bf4db74 /lib/pry/commands/cat.rb
parentbd778a3c04f3201bfe781e2b2e12363b234add0f (diff)
downloadpry-f22187c09dca0625e7a401ed45ec1697745340c4.tar.gz
rubocop: fix offences of the Style/EmptyCaseCondition cop
Diffstat (limited to 'lib/pry/commands/cat.rb')
-rw-r--r--lib/pry/commands/cat.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pry/commands/cat.rb b/lib/pry/commands/cat.rb
index 4bc445f5..6ca2c76c 100644
--- a/lib/pry/commands/cat.rb
+++ b/lib/pry/commands/cat.rb
@@ -33,10 +33,9 @@ class Pry
end
def process
- output = case
- when opts.present?(:ex)
+ output = if opts.present?(:ex)
ExceptionFormatter.new(_pry_.last_exception, _pry_, opts).format
- when opts.present?(:in)
+ elsif opts.present?(:in)
InputExpressionFormatter.new(_pry_.input_ring, opts).format
else
FileFormatter.new(args.first, _pry_, opts).format