Fix boolean logic with nil value

上级 d8e40c2a
......@@ -469,7 +469,7 @@ class Project < ActiveRecord::Base
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册