diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-12-02 16:23:19 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-12-06 15:53:59 +0900 |
commit | 6171db2d2df337ef52460387a48f28136e809861 (patch) | |
tree | 8a364ba334efb8ab8d7df299b262ea427b1cd596 /app/models/ci | |
parent | 38d46754be49f13c1f92fd1f79ff49c76ec55c49 (diff) | |
download | gitlab-ce-6171db2d2df337ef52460387a48f28136e809861.tar.gz |
Fix /build_spec.rb
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/build.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index a29fb0ad2ca..fbda0962a91 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -490,6 +490,14 @@ module Ci end end + def valid_dependency? + return false unless complete? + return false if artifacts_expired? + return false if erased? + + true + end + def hide_secrets(trace) return unless trace @@ -600,13 +608,5 @@ module Ci update_project_statistics end end - - def valid_dependency? - return false unless complete? - return false if artifacts_expired? - return false if erased? - - true - end end end |