summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2017-02-16 01:38:53 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2017-03-02 17:45:45 +0100
commitbbf5bb7070d5b7828c3e7f7301b7f645fd39b51f (patch)
treeb0dd9a3de02c3b7fb1444a4d97250a1768631a2d /lib
parent3eafffcef0f8932bab4e06b465f9b63327e87942 (diff)
downloadgitlab-ce-bbf5bb7070d5b7828c3e7f7301b7f645fd39b51f.tar.gz
Fix rubocop offenses
Diffstat (limited to 'lib')
-rw-r--r--lib/api/helpers/runner.rb2
-rw-r--r--lib/gitlab/ci/build/response/image.rb2
-rw-r--r--lib/gitlab/ci/build/response/step.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/helpers/runner.rb b/lib/api/helpers/runner.rb
index 8db0fc117c6..8204adbcfe5 100644
--- a/lib/api/helpers/runner.rb
+++ b/lib/api/helpers/runner.rb
@@ -36,7 +36,7 @@ module API
contacted_at_max_age = UPDATE_RUNNER_EVERY + Random.rand(UPDATE_RUNNER_EVERY)
current_runner.contacted_at.nil? ||
- (Time.now - current_runner.contacted_at) >= contacted_at_max_age
+ (Time.now - current_runner.contacted_at) >= contacted_at_max_age
end
def build_not_found!
diff --git a/lib/gitlab/ci/build/response/image.rb b/lib/gitlab/ci/build/response/image.rb
index 342a249aee8..c160689a2e1 100644
--- a/lib/gitlab/ci/build/response/image.rb
+++ b/lib/gitlab/ci/build/response/image.rb
@@ -17,4 +17,4 @@ module Gitlab
end
end
end
-end \ No newline at end of file
+end
diff --git a/lib/gitlab/ci/build/response/step.rb b/lib/gitlab/ci/build/response/step.rb
index 7b35852a510..f78cd566940 100644
--- a/lib/gitlab/ci/build/response/step.rb
+++ b/lib/gitlab/ci/build/response/step.rb
@@ -43,4 +43,4 @@ module Gitlab
end
end
end
-end \ No newline at end of file
+end