Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-09-25 08:21:41 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 18:04:04 +0300
commit2f03c503fb299a4a821d74f75c31aa1189fcbccb (patch)
treeb90993eaf676ea86abbb401e8364f1fc8ac9d515 /app/presenters/ci
parent422970c93eb0ff445da5c3351cdfd70bb387e57c (diff)
Introduce ProceedBuildService
Diffstat (limited to 'app/presenters/ci')
-rw-r--r--app/presenters/ci/build_presenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/ci/build_presenter.rb b/app/presenters/ci/build_presenter.rb
index 4005840ce58..33056a809b7 100644
--- a/app/presenters/ci/build_presenter.rb
+++ b/app/presenters/ci/build_presenter.rb
@@ -36,7 +36,7 @@ module Ci
end
def execute_in
- [0, scheduled_at - Time.now].max
+ scheduled? && scheduled_at && [0, scheduled_at - Time.now].max
end
private