Remove unecessary variable call, #sort!
always returns an array
This commit is contained in:
parent
a92814b001
commit
6d10688bbe
@ -94,7 +94,6 @@ def all_helpers_from_path(path)
|
||||
extract = /^#{Regexp.quote(_path.to_s)}\/?(.*)_helper.rb$/
|
||||
names = Dir["#{_path}/**/*_helper.rb"].map { |file| file.sub(extract, '\1') }
|
||||
names.sort!
|
||||
names
|
||||
end
|
||||
helpers.uniq!
|
||||
helpers
|
||||
|
Loading…
Reference in New Issue
Block a user