diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-08-01 11:56:12 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-08-01 13:25:19 +0300 |
commit | c944e22d5087a87680737717ef2c6588320de64e (patch) | |
tree | a5732af55ac24554dcbac1ba208ddc5521450fef /app/models | |
parent | 8fe37da6cb648b73e618861b9672eb0cf34247d0 (diff) |
Fix spec failures
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/build.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index db5ad300a12..93bbee49c09 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -580,12 +580,12 @@ module Ci end def has_valid_build_dependencies? - return true unless Feature.enabled?('ci_disable_validates_dependencies') + return true if Feature.enabled?('ci_disable_validates_dependencies') - dependencies.all?(&:is_valid_dependency?) + dependencies.all?(&:valid_dependency?) end - def is_valid_dependency? + def valid_dependency? return false if artifacts_expired? return false if erased? |