Refactor MergeRequest::UpdateService#handle_changes to lower complexity
requested to merge 322496-follow-up-from-refactor-tracking-of-mr-title-desc-and-draft-status into master
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