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
def predefined_variables
Gitlab::Ci::Variables::Collection.new.tap do |variables|
variables.append(key: 'AUTO_DEVOPS_DOMAIN',
value: domain.presence || instance_domain,
public: true) if has_domain?
if has_domain?
variables.append(key: 'AUTO_DEVOPS_DOMAIN',
value: domain.presence || instance_domain)
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