Commit 769f87ee authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix rubocop offense in auto devops predefined variables

parent d4319e17
...@@ -16,9 +16,10 @@ class ProjectAutoDevops < ActiveRecord::Base ...@@ -16,9 +16,10 @@ class ProjectAutoDevops < ActiveRecord::Base
def predefined_variables def predefined_variables
Gitlab::Ci::Variables::Collection.new.tap do |variables| Gitlab::Ci::Variables::Collection.new.tap do |variables|
variables.append(key: 'AUTO_DEVOPS_DOMAIN', if has_domain?
value: domain.presence || instance_domain, variables.append(key: 'AUTO_DEVOPS_DOMAIN',
public: true) if has_domain? value: domain.presence || instance_domain)
end
end end
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