Use a different name of the method to check if sanitize is enabled in check task.
This commit is contained in:
parent
55319c0a7a
commit
18d9172edc
1 changed files with 2 additions and 2 deletions
|
@ -786,14 +786,14 @@ namespace :gitlab do
|
|||
end
|
||||
|
||||
def sanitized_message(project)
|
||||
if sanitize
|
||||
if should_sanitize?
|
||||
"#{project.namespace_id.to_s.yellow}/#{project.id.to_s.yellow} ... "
|
||||
else
|
||||
"#{project.name_with_namespace.yellow} ... "
|
||||
end
|
||||
end
|
||||
|
||||
def sanitize
|
||||
def should_sanitize?
|
||||
if ENV['SANITIZE'] == "true"
|
||||
true
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue