Simplify Clusters::CreateService cluster check

This commit is contained in:
Matija Čupić 2017-11-24 20:17:00 +01:00
parent 0bee018631
commit 36d24c30a7
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
1 changed files with 1 additions and 5 deletions

View File

@ -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