Simplify Clusters::CreateService cluster check
This commit is contained in:
parent
0bee018631
commit
36d24c30a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue