Commit a162503e authored by Mark Chao's avatar Mark Chao

Refactor by using same variable

parent ac67e9f3
......@@ -118,7 +118,7 @@ module EE
rule = approval_rules.code_owner.first
rule ||= approval_rules.code_owner.create!(name: ApprovalMergeRequestRule::DEFAULT_NAME_FOR_CODE_OWNER)
rule.users = code_owners.uniq
rule.users = owners.uniq
end
else
approval_rules.code_owner.delete_all
......
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