Skip to content
Snippets Groups Projects
Commit dcd773c7 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

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

parent dede0b2d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment