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/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-20 16:41:41 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-20 16:41:41 +0300
commit0672c5a92e8be90da0cb79f277bb7aee82fdba8a (patch)
tree5a22d9175f8e0af89a214a6b257b6389daf9b18a /lib/ci
parentf30005f0a99b6ab019af22a8b7db40aecd1ff066 (diff)
Post-merge improve of CI permissions
Diffstat (limited to 'lib/ci')
-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