diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 03:16:48 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 18:31:57 +0300 |
commit | ccbebbdfeb9ce78c0a386ae08ae88aeb7dc5ad86 (patch) | |
tree | 5682d86e241733bd1bca2289ec063e4fde5e7414 /lib/ci | |
parent | 215228b477e9dae8cf3ba36af767ae12d4328e28 (diff) |
Enable Performance/RedundantMatch
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/api/helpers.rb | 2 |
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! |