diff options
-rw-r--r-- | app/services/merge_requests/merge_base_service.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/services/merge_requests/merge_base_service.rb b/app/services/merge_requests/merge_base_service.rb index 9bf421466c7..095bdca5472 100644 --- a/app/services/merge_requests/merge_base_service.rb +++ b/app/services/merge_requests/merge_base_service.rb @@ -9,16 +9,13 @@ module MergeRequests attr_reader :merge_request # Overridden in EE. - def error_check! - end - - # Overridden in EE. def hooks_validation_pass?(_merge_request) true end # Overridden in EE. def hooks_validation_error(_merge_request) + # No-op end def source @@ -31,6 +28,11 @@ module MergeRequests private + # Overridden in EE. + def error_check! + # No-op + end + def raise_error(message) raise MergeError, message end |