Refactor AutoDevopsHelper.missing_auto_devops_domain?

This commit is contained in:
Matija Čupić 2018-02-02 23:06:13 +01:00
parent 40753029e4
commit effb96b985
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -27,7 +27,7 @@ module AutoDevopsHelper
private
def missing_auto_devops_domain?(project)
!(project.auto_devops&.has_domain? || current_application_settings.auto_devops_domain.present?)
!(project.auto_devops || project.build_auto_devops)&.has_domain?
end
def missing_auto_devops_service?(project)