Read about our upcoming Code of Conduct on this issue

Unverified Commit 63e308f6 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Fix boolean logic with nil value

parent 7d494dc833a0
......@@ -469,7 +469,7 @@ def lfs_enabled?
end
def auto_devops_enabled?
if auto_devops
if auto_devops && !auto_devops.enabled.nil?
auto_devops.enabled?
else
current_application_settings.auto_devops_enabled?
......
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