1
0
Fork 0
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:
Yoshiyuki Hirano 2018-04-19 23:45:28 +09:00
parent 92bb3f6aaa
commit 6aaeb8ef10
2 changed files with 2 additions and 2 deletions

View file

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

View file

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