diff options
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 |