Reduce cognitive complexity of `MergeRequestBlock#check_block_constraints`
The following discussion from !11600 (merged) should be addressed:
-
@nick.thomas started a discussion: (+1 comment)
Method
check_block_constraintshas a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. in ee/app/models/merge_request_block.rb:15
Just spotted
cc @nick.thomas
Edited by Nick Thomas