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 15:39:50 +01:00
parent dede0b2d80
commit dcd773c759
+2 -2
View File
@@ -790,14 +790,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