Skip to content

Refactor MergeRequest::UpdateService#handle_changes to lower complexity

What does this MR do?

Rubocop complains about our ABC Complexity, so just doing a little extraction refactoring work to drop that number down in order to be able to remove the cop exception.

Before After
Total Complexity 226.7 228.7
Average Complexity 13.3 10.9
#handle_changes 73.5 39.5

Related to #322496 (closed)

Edited by Kerri Miller

Merge request reports