Commit 36d24c30 authored by Matija Čupić's avatar Matija Čupić

Simplify Clusters::CreateService cluster check

parent 0bee0186
......@@ -29,11 +29,7 @@ module Clusters
end
def can_create_cluster?
if project.clusters.empty?
true
else
false
end
return project.clusters.empty?
end
end
end
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