Commit 47825641 authored by Gary Holtz's avatar Gary Holtz

Revert "Fixes a potential error state"

This reverts commit de029359.
parent de029359
......@@ -55,6 +55,8 @@ module MergeRequests
error =
if @merge_request.should_be_rebased?
'Only fast-forward merge is allowed for your project. Please update your source branch'
elsif !@merge_request.merged? && !@merge_request.mergeable?
'Merge request is not mergeable'
end
raise_error(error) if error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment