Skip to content

Commit 6aaeb8e

Browse files
committed
Improve redundancy in line tasks
* Remove needless concat from actionpack/Rakefile * Remove neesless File.join from actionview/Rakefile
1 parent 92bb3f6 commit 6aaeb8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actionpack/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace :test do
2828
end
2929

3030
task :lines do
31-
load File.expand_path("..", __dir__) + "/tools/line_statistics"
31+
load File.expand_path("../tools/line_statistics", __dir__)
3232
files = FileList["lib/**/*.rb"]
3333
CodeTools::LineStatistics.new(files).print_loc
3434
end

actionview/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace :assets do
131131
end
132132

133133
task :lines do
134-
load File.join(File.expand_path("..", __dir__), "/tools/line_statistics")
134+
load File.expand_path("../tools/line_statistics", __dir__)
135135
files = FileList["lib/**/*.rb"]
136136
CodeTools::LineStatistics.new(files).print_loc
137137
end

0 commit comments

Comments
 (0)