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
path: root/lib/ci
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-16 00:29:47 +0300
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-16 00:29:47 +0300
commit771dd68cdff9c1f57082fd99af5c22c3af96e7c5 (patch)
tree4e3c60de1b5ae66928bf232adc34c84d081bb68d /lib/ci
parent692426b13ecff871890a853bebef19d63ee4985e (diff)
linting
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/api/builds.rb4
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