diff options
author | James Lopez <james@jameslopez.es> | 2016-01-27 10:44:24 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-01-27 10:44:24 +0100 |
commit | eef9c9d4476c46cf13215814944eed47576f862a (patch) | |
tree | 6c0aa1c1bfe3a56f1754daf4fe13943af15a8d18 | |
parent | d6a186135f320904507bf9f195fc9637719552d0 (diff) | |
download | gitlab-ce-eef9c9d4476c46cf13215814944eed47576f862a.tar.gz |
update fix based on feedback
-rw-r--r-- | app/controllers/groups_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index f7c6607aff7..3d175a0717e 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -81,8 +81,7 @@ class GroupsController < Groups::ApplicationController def group @group ||= Group.find_by(path: params[:id]) - return @group if @group - render_404 + @group || render_404 end def load_projects |