summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-09-25 14:21:41 +0900
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 17:04:04 +0200
commit2f03c503fb299a4a821d74f75c31aa1189fcbccb (patch)
treeb90993eaf676ea86abbb401e8364f1fc8ac9d515 /app/presenters
parent422970c93eb0ff445da5c3351cdfd70bb387e57c (diff)
downloadgitlab-ce-2f03c503fb299a4a821d74f75c31aa1189fcbccb.tar.gz
Introduce ProceedBuildService
Diffstat (limited to 'app/presenters')
-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