diff options
author | Xavier Noria <fxn@hashref.com> | 2012-03-25 18:26:25 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-03-25 18:26:25 -0700 |
commit | 8954ee650fbaa60a8766999f138557d5c8c12339 (patch) | |
tree | f71679e54faed7002069d3b421c7c503b143e7cd /railties | |
parent | 7cc797f1776ce8470b00b7e1dfc89f4df03749c1 (diff) | |
parent | 68926dd5ee355bab8bc37ed40384126c9f1f2633 (diff) | |
download | rails-8954ee650fbaa60a8766999f138557d5c8c12339.tar.gz rails-8954ee650fbaa60a8766999f138557d5c8c12339.tar.bz2 rails-8954ee650fbaa60a8766999f138557d5c8c12339.zip |
Merge pull request #5575 from phiggins/remove_conditional_from_statistics_task
Remove useless conditional.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/code_statistics.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/railties/lib/rails/code_statistics.rb b/railties/lib/rails/code_statistics.rb index 03538b2422..bcac0751d6 100644 --- a/railties/lib/rails/code_statistics.rb +++ b/railties/lib/rails/code_statistics.rb @@ -95,13 +95,7 @@ class CodeStatistics #:nodoc: 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)} " + |