summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-12-22 10:03:52 +0100
committerMarin Jankovski <maxlazio@gmail.com>2014-12-22 15:39:50 +0100
commitdcd773c759a73da18a280a6c4e660a73b1a20416 (patch)
treecf0172271ff41ec49a59b098f76515913ac164b6
parentdede0b2d80a2a03028aefd135f924069794dbe0f (diff)
downloadgitlab-ce-dcd773c759a73da18a280a6c4e660a73b1a20416.tar.gz
Use a different name of the method to check if sanitize is enabled in check task.
-rw-r--r--lib/tasks/gitlab/check.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 7ff23a7600a..fc6ce657ded 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -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