Commit dcd773c7 authored by Marin Jankovski's avatar Marin Jankovski

Use a different name of the method to check if sanitize is enabled in check task.

parent dede0b2d
...@@ -790,14 +790,14 @@ namespace :gitlab do ...@@ -790,14 +790,14 @@ namespace :gitlab do
end end
def sanitized_message(project) def sanitized_message(project)
if sanitize if should_sanitize?
"#{project.namespace_id.to_s.yellow}/#{project.id.to_s.yellow} ... " "#{project.namespace_id.to_s.yellow}/#{project.id.to_s.yellow} ... "
else else
"#{project.name_with_namespace.yellow} ... " "#{project.name_with_namespace.yellow} ... "
end end
end end
def sanitize def should_sanitize?
if ENV['SANITIZE'] == "true" if ENV['SANITIZE'] == "true"
true true
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment