diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-07-14 08:58:05 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-07-19 12:31:24 -0600 |
commit | b2a79554c339a583b6cc0d471b8224a24f11c96d (patch) | |
tree | 02147a633a1f15c860258f03eb87c4c391f1e90e /app/models | |
parent | b306a52114bb155538dcee3b0eab815ac8d2655d (diff) | |
download | gitlab-ce-b2a79554c339a583b6cc0d471b8224a24f11c96d.tar.gz |
Address feedback.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/pipeline.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index e862978d7b4..90ed57e9aa0 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -146,10 +146,8 @@ module Ci end end - def with_warnings? - builds.latest.any? do |build| - build.failed? && build.allow_failure - end + def has_warnings? + builds.latest.ignored.any? end def config_processor |