Commit b7deda94 authored by Mike Greiling's avatar Mike Greiling

collapse nested if statement

parent 093dd5ce
...@@ -91,9 +91,8 @@ ...@@ -91,9 +91,8 @@
%span #{time_ago_with_tooltip(build.finished_at)} %span #{time_ago_with_tooltip(build.finished_at)}
%td.coverage %td.coverage
- if coverage - if coverage && build.try(:coverage)
- if build.try(:coverage) #{build.coverage}%
#{build.coverage}%
%td %td
.pull-right .pull-right
......
...@@ -83,9 +83,8 @@ ...@@ -83,9 +83,8 @@
%span #{time_ago_with_tooltip(generic_commit_status.finished_at)} %span #{time_ago_with_tooltip(generic_commit_status.finished_at)}
%td.coverage %td.coverage
- if coverage - if coverage && generic_commit_status.try(:coverage)
- if generic_commit_status.try(:coverage) #{generic_commit_status.coverage}%
#{generic_commit_status.coverage}%
%td %td
-# empty column to match number of columns in ci/builds/_build.html.haml -# empty column to match number of columns in ci/builds/_build.html.haml
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment