diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-15 22:29:47 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-15 22:29:47 +0100 |
commit | 771dd68cdff9c1f57082fd99af5c22c3af96e7c5 (patch) | |
tree | 4e3c60de1b5ae66928bf232adc34c84d081bb68d /lib/ci | |
parent | 692426b13ecff871890a853bebef19d63ee4985e (diff) | |
download | gitlab-ce-771dd68cdff9c1f57082fd99af5c22c3af96e7c5.tar.gz |
linting
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/api/builds.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb index acb0ca8719f..df32f64ef83 100644 --- a/lib/ci/api/builds.rb +++ b/lib/ci/api/builds.rb @@ -18,8 +18,8 @@ module Ci last_update = Gitlab::Redis.with { |redis| redis.get(current_runner_redis_key)} - if params[:last_update] != "" - if :last_update == last_update + if params[:last_update].present? + if params[:last_update] == last_update headers 'X-GitLab-Last-Update', last_update return build_not_found! end |