summaryrefslogtreecommitdiffstats
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-20 13:54:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-20 13:54:42 +0000
commite355a55e3c691399cf120e3e21815c8ea623dae9 (patch)
tree8fa8bbe51e05f61f3d1de742872e1fa93be065f6 /app/controllers/projects_controller.rb
parentb07a27b028350b352485a7547877947781baa302 (diff)
downloadredmine-e355a55e3c691399cf120e3e21815c8ea623dae9.tar.gz
redmine-e355a55e3c691399cf120e3e21815c8ea623dae9.zip
Don't use && return.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11221 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index a3527a550..df1d63776 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -141,7 +141,8 @@ class ProjectsController < ApplicationController
def show
if params[:jump]
# try to redirect to the requested menu item
- redirect_to_project_menu_item(@project, params[:jump]) && return
+ redirect_to_project_menu_item(@project, params[:jump])
+ return
end
@users_by_role = @project.users_by_role