diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-20 14:58:26 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-24 13:14:00 +0300 |
commit | f5659ac4d1ad26d4d0ba5ea10adb92511cc911f2 (patch) | |
tree | db7d5fa29b2df16e37081a4ab1a5da28417961f1 /app/controllers/projects/project_members_controller.rb | |
parent | 80ea344e427379b5e614f14c90af5369ae1c4a16 (diff) | |
download | gitlab-ce-f5659ac4d1ad26d4d0ba5ea10adb92511cc911f2.tar.gz |
Add parentheses around return redirect_to method
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/projects/project_members_controller.rb')
-rw-r--r-- | app/controllers/projects/project_members_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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? |