lib/pry/commands/cat.rb: do not create a new string

This commit is contained in:
Kyrylo Silin 2013-11-27 01:26:55 +02:00
parent dd1b2aeb1b
commit 72a308ba12
1 changed files with 1 additions and 1 deletions

View File

@ -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