mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Layout/ExtraSpacing cop
This commit is contained in:
parent
69c7b27f25
commit
4cc13f9a40
28 changed files with 56 additions and 61 deletions
|
@ -272,12 +272,6 @@ Layout/EndAlignment:
|
|||
- 'lib/pry/editor.rb'
|
||||
- 'lib/pry/method.rb'
|
||||
|
||||
# Offense count: 53
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
||||
Layout/ExtraSpacing:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
|
|
|
@ -30,7 +30,8 @@ class Pry
|
|||
def backtrace_level
|
||||
@backtrace_level ||=
|
||||
begin
|
||||
bl = if opts[:ex].nil?
|
||||
bl =
|
||||
if opts[:ex].nil?
|
||||
ex.bt_index
|
||||
else
|
||||
ex.bt_index = absolute_index_number(opts[:ex], ex.backtrace.size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue