summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-20 14:58:26 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-24 13:14:00 +0300
commitf5659ac4d1ad26d4d0ba5ea10adb92511cc911f2 (patch)
treedb7d5fa29b2df16e37081a4ab1a5da28417961f1 /app
parent80ea344e427379b5e614f14c90af5369ae1c4a16 (diff)
downloadgitlab-ce-f5659ac4d1ad26d4d0ba5ea10adb92511cc911f2.tar.gz
Add parentheses around return redirect_to method
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/controllers/groups/group_members_controller.rb2
-rw-r--r--app/controllers/projects/project_members_controller.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/groups/group_members_controller.rb b/app/controllers/groups/group_members_controller.rb
index 5a6e26ab8cc..940a3ad20ba 100644
--- a/app/controllers/groups/group_members_controller.rb
+++ b/app/controllers/groups/group_members_controller.rb
@@ -22,7 +22,7 @@ class Groups::GroupMembersController < Groups::ApplicationController
def create
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
@group.add_users(
diff --git a/app/controllers/projects/project_members_controller.rb b/app/controllers/projects/project_members_controller.rb
index ec8512bbaba..073d4338338 100644
--- a/app/controllers/projects/project_members_controller.rb
+++ b/app/controllers/projects/project_members_controller.rb
@@ -26,7 +26,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
def create
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
if params[:user_ids].present?