Browse files

Remove useless conditional.

  • Loading branch information...
1 parent 7cc797f commit 68926dd5ee355bab8bc37ed40384126c9f1f2633 @phiggins phiggins committed Mar 25, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 railties/lib/rails/code_statistics.rb
View
8 railties/lib/rails/code_statistics.rb
@@ -95,13 +95,7 @@ def print_line(name, statistics)
m_over_c = (statistics["methods"] / statistics["classes"]) rescue m_over_c = 0
loc_over_m = (statistics["codelines"] / statistics["methods"]) - 2 rescue loc_over_m = 0
- start = if TEST_TYPES.include? name
- "| #{name.ljust(20)} "
- else
- "| #{name.ljust(20)} "
- end
-
- puts start +
+ puts "| #{name.ljust(20)} " +
"| #{statistics["lines"].to_s.rjust(5)} " +
"| #{statistics["codelines"].to_s.rjust(5)} " +
"| #{statistics["classes"].to_s.rjust(7)} " +

0 comments on commit 68926dd

Please sign in to comment.