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

This commit is contained in:
Marin Jankovski 2014-12-22 10:03:52 +01:00
parent 55319c0a7a
commit 18d9172edc

View file

@ -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