Commit b7deda94 authored by Mike Greiling's avatar Mike Greiling

collapse nested if statement

parent 093dd5ce
......@@ -91,8 +91,7 @@
%span #{time_ago_with_tooltip(build.finished_at)}
%td.coverage
- if coverage
- if build.try(:coverage)
- if coverage && build.try(:coverage)
#{build.coverage}%
%td
......
......@@ -83,8 +83,7 @@
%span #{time_ago_with_tooltip(generic_commit_status.finished_at)}
%td.coverage
- if coverage
- if generic_commit_status.try(:coverage)
- if coverage && generic_commit_status.try(:coverage)
#{generic_commit_status.coverage}%
%td
......
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