diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-20 15:41:41 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-20 15:41:41 +0200 |
commit | 0672c5a92e8be90da0cb79f277bb7aee82fdba8a (patch) | |
tree | 5a22d9175f8e0af89a214a6b257b6389daf9b18a /lib | |
parent | f30005f0a99b6ab019af22a8b7db40aecd1ff066 (diff) | |
download | gitlab-ce-0672c5a92e8be90da0cb79f277bb7aee82fdba8a.tar.gz |
Post-merge improve of CI permissions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/mask_secret.rb | 6 |
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 |