BigW Consortium Gitlab

Use domain.presence instead of domain to avoid empty strings

parent 56bcb3e8
...@@ -16,7 +16,7 @@ class ProjectAutoDevops < ActiveRecord::Base ...@@ -16,7 +16,7 @@ class ProjectAutoDevops < ActiveRecord::Base
def variables def variables
variables = [] variables = []
variables << { key: 'AUTO_DEVOPS_DOMAIN', value: domain || instance_domain, public: true } if has_domain? variables << { key: 'AUTO_DEVOPS_DOMAIN', value: domain.presence || instance_domain, public: true } if has_domain?
variables variables
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