Skip to content
Snippets Groups Projects
Commit 255445c3 authored by Douwe Maan's avatar Douwe Maan
Browse files

Param should be present, not just truthy

parent 2a20c0e5
No related branches found
No related tags found
1 merge request!2424Backport two commits from EE
Pipeline #
Loading
@@ -44,7 +44,7 @@ module MergeRequests
Loading
@@ -44,7 +44,7 @@ module MergeRequests
def after_merge def after_merge
MergeRequests::PostMergeService.new(project, current_user).execute(merge_request) MergeRequests::PostMergeService.new(project, current_user).execute(merge_request)
   
if params[:should_remove_source_branch] if params[:should_remove_source_branch].present?
DeleteBranchService.new(@merge_request.source_project, current_user). DeleteBranchService.new(@merge_request.source_project, current_user).
execute(merge_request.source_branch) execute(merge_request.source_branch)
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment