mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
lib/pry/commands/cat.rb: do not create a new string
This commit is contained in:
parent
dd1b2aeb1b
commit
72a308ba12
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class Pry
|
|||
$LOAD_PATH.flat_map do |path|
|
||||
Dir[path + '/**/*'].map { |f|
|
||||
next if File.directory?(f)
|
||||
f.sub(path + '/', '')
|
||||
f.sub!(path + '/', '')
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue