diff --git a/app/views/quality_analysis/_show.html.erb b/app/views/quality_analysis/_show.html.erb index 7991bba09..b364f5f89 100644 --- a/app/views/quality_analysis/_show.html.erb +++ b/app/views/quality_analysis/_show.html.erb @@ -21,7 +21,7 @@
复杂度
-<%= @ha["function_complexity"].nil? ? 0 : @ha["function_complexity"] %> +
<%= @ha["function_complexity"].to_i == 0 ? 0 : @ha["function_complexity"] %>
@@ -32,7 +32,7 @@代码重复度
-<%= @ha["duplicated_lines_density"].nil? ? 0 : @ha["duplicated_lines_density"] %> +
<%= @ha["duplicated_lines_density"].to_i == 0 ? 0 : @ha["duplicated_lines_density"] %>
@@ -41,7 +41,7 @@注释率
-<%= @ha["comment_lines_density"].nil? ? 0 : @ha["comment_lines_density"] %> +
<%= @ha["comment_lines_density"].to_i == 0 ? 0 : @ha["comment_lines_density"] %>