Skip to content
Snippets Groups Projects
Commit b7deda94 authored by Mike Greiling's avatar Mike Greiling
Browse files

collapse nested if statement

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