summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-12-02 16:23:19 +0900
committerShinya Maeda <shinya@gitlab.com>2017-12-06 15:53:59 +0900
commit6171db2d2df337ef52460387a48f28136e809861 (patch)
tree8a364ba334efb8ab8d7df299b262ea427b1cd596 /app/models
parent38d46754be49f13c1f92fd1f79ff49c76ec55c49 (diff)
downloadgitlab-ce-6171db2d2df337ef52460387a48f28136e809861.tar.gz
Fix /build_spec.rb
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/build.rb16
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