Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5575 from phiggins/remove_conditional_from_statis…

…tics_task

Remove useless conditional.
  • Loading branch information...
commit 8954ee650fbaa60a8766999f138557d5c8c12339 2 parents 7cc797f + 68926dd
@fxn fxn authored
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)} " +
Please sign in to comment.
Something went wrong with that request. Please try again.