summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-20 15:41:41 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-20 15:41:41 +0200
commit0672c5a92e8be90da0cb79f277bb7aee82fdba8a (patch)
tree5a22d9175f8e0af89a214a6b257b6389daf9b18a /lib
parentf30005f0a99b6ab019af22a8b7db40aecd1ff066 (diff)
downloadgitlab-ce-0672c5a92e8be90da0cb79f277bb7aee82fdba8a.tar.gz
Post-merge improve of CI permissions
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/mask_secret.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ci/mask_secret.rb b/lib/ci/mask_secret.rb
index 3da04edde70..3388a642eb4 100644
--- a/lib/ci/mask_secret.rb
+++ b/lib/ci/mask_secret.rb
@@ -1,9 +1,9 @@
module Ci::MaskSecret
class << self
- def mask(value, token)
- return value unless value.present? && token.present?
+ def mask!(value, token)
+ return unless value.present? && token.present?
- value.gsub(token, 'x' * token.length)
+ value.gsub!(token, 'x' * token.length)
end
end
end