Commit 8af592e7 authored by Mark Chao's avatar Mark Chao

Remove duplicated check

parent 2663854f
......@@ -79,7 +79,6 @@ module EE
def sync_approval_rules
return if ::Feature.enabled?(:approval_rules, project)
return unless project.previous_changes.include?(:approvals_before_merge)
return if ::Feature.enabled?(:approval_rules, project)
project.approval_rules.update_all(approvals_required: project.approvals_before_merge)
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