throw(:validation_error,s_('TestHooks|Ensure one of your projects has merge requests.'))unlessmerge_request.present?# rubocop:disable Cop/BanCatchThrow
return{error: s_('TestHooks|Ensure one of your projects has merge requests.')}unlessmerge_request.present?