mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Improve redundancy in line tasks
* Remove needless concat from actionpack/Rakefile * Remove neesless File.join from actionview/Rakefile
This commit is contained in:
parent
92bb3f6aaa
commit
6aaeb8ef10
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ namespace :test do
|
|||
end
|
||||
|
||||
task :lines do
|
||||
load File.expand_path("..", __dir__) + "/tools/line_statistics"
|
||||
load File.expand_path("../tools/line_statistics", __dir__)
|
||||
files = FileList["lib/**/*.rb"]
|
||||
CodeTools::LineStatistics.new(files).print_loc
|
||||
end
|
||||
|
|
|
@ -131,7 +131,7 @@ namespace :assets do
|
|||
end
|
||||
|
||||
task :lines do
|
||||
load File.join(File.expand_path("..", __dir__), "/tools/line_statistics")
|
||||
load File.expand_path("../tools/line_statistics", __dir__)
|
||||
files = FileList["lib/**/*.rb"]
|
||||
CodeTools::LineStatistics.new(files).print_loc
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue