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
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-09-21 12:00:38 +0300
committerRémy Coutable <remy@rymai.me>2016-09-21 12:00:38 +0300
commit6df3dd9d5ed6c16d60f560c906dded888d845953 (patch)
tree36ca3c818f8c52993db78417cb9fbb293cdb2f9f /lib
parent49405ac746a8aa2a4854d14e4a8cb6539535b1a5 (diff)
parentcf6a35f09a3f38b124bd0e6013950f21b5bb1851 (diff)
Merge branch 'post-merge-improve-of-ci-permissions' into 'master'
Post-merge improve of CI permissions Improves code from !6409 See merge request !6432
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/mask_secret.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ci/mask_secret.rb b/lib/ci/mask_secret.rb
index 3da04edde70..997377abc55 100644
--- a/lib/ci/mask_secret.rb
+++ b/lib/ci/mask_secret.rb
@@ -1,9 +1,10 @@
module Ci::MaskSecret
class << self
- def mask(value, token)
+ def mask!(value, token)
return value unless value.present? && token.present?
- value.gsub(token, 'x' * token.length)
+ value.gsub!(token, 'x' * token.length)
+ value
end
end
end