Commit f5659ac4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add parentheses around return redirect_to method

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 80ea344e
...@@ -22,7 +22,7 @@ class Groups::GroupMembersController < Groups::ApplicationController ...@@ -22,7 +22,7 @@ class Groups::GroupMembersController < Groups::ApplicationController
def create def create
if params[:user_ids].blank? if params[:user_ids].blank?
return redirect_to group_group_members_path(@group), alert: 'No users specified.' return redirect_to(group_group_members_path(@group), alert: 'No users specified.')
end end
@group.add_users( @group.add_users(
......
...@@ -26,7 +26,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController ...@@ -26,7 +26,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
def create def create
if params[:user_ids].blank? && params[:group_ids].blank? if params[:user_ids].blank? && params[:group_ids].blank?
return redirect_to namespace_project_project_members_path(@project.namespace, @project), alert: 'No users or groups specified.' return redirect_to(namespace_project_project_members_path(@project.namespace, @project), alert: 'No users or groups specified.')
end end
if params[:user_ids].present? if params[:user_ids].present?
......
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