Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-02-06 17:30:55 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-02-06 17:30:55 +0300
commit5291c0bb51ae19109e09ff0ee7fca6f118288923 (patch)
treeaa87234eb32b1cd4dab5822055bcefb4c4e9543d /app/models/project_auto_devops.rb
parent56bcb3e8c87bf25cb33ed02832c146e966cc4d7d (diff)
Use domain.presence instead of domain to avoid empty strings
Diffstat (limited to 'app/models/project_auto_devops.rb')
-rw-r--r--app/models/project_auto_devops.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_auto_devops.rb b/app/models/project_auto_devops.rb
index 728e64e8fe3..112ed7ed434 100644
--- a/app/models/project_auto_devops.rb
+++ b/app/models/project_auto_devops.rb
@@ -16,7 +16,7 @@ class ProjectAutoDevops < ActiveRecord::Base
def 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
end
end