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:
authorDouwe Maan <douwe@selenight.nl>2017-02-22 03:16:48 +0300
committerDouwe Maan <douwe@selenight.nl>2017-02-23 18:31:57 +0300
commitccbebbdfeb9ce78c0a386ae08ae88aeb7dc5ad86 (patch)
tree5682d86e241733bd1bca2289ec063e4fde5e7414 /lib/ci
parent215228b477e9dae8cf3ba36af767ae12d4328e28 (diff)
Enable Performance/RedundantMatch
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/api/helpers.rb b/lib/ci/api/helpers.rb
index 654bddf7d18..a2e6387dbe5 100644
--- a/lib/ci/api/helpers.rb
+++ b/lib/ci/api/helpers.rb
@@ -60,7 +60,7 @@ module Ci
end
def build_not_found!
- if headers['User-Agent'].to_s.match(/gitlab-ci-multi-runner \d+\.\d+\.\d+(~beta\.\d+\.g[0-9a-f]+)? /)
+ if headers['User-Agent'].to_s =~ /gitlab-ci-multi-runner \d+\.\d+\.\d+(~beta\.\d+\.g[0-9a-f]+)? /
no_content!
else
not_found!