lib/pry/commands/cat.rb: do not create a new string
This commit is contained in:
parent
dd1b2aeb1b
commit
72a308ba12
|
@ -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…
Reference in New Issue