Simplify Clusters::CreateService cluster check
This commit is contained in:
parent
0bee018631
commit
36d24c30a7
1 changed files with 1 additions and 5 deletions
|
@ -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 a new issue