mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Simplify method chain (use 'map.with_index')
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
This commit is contained in:
parent
d4ba9ff39a
commit
a1f0a00b65
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class Pry
|
|||
lines = lines.lines
|
||||
end
|
||||
|
||||
@lines = lines.each_with_index.map { |l, i| [l.chomp, i + start_line.to_i] }
|
||||
@lines = lines.map.with_index { |l, i| [l.chomp, i + start_line.to_i] }
|
||||
@code_type = code_type
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue