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

Simplify Clusters::CreateService cluster check

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