summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-01-27 10:44:24 +0100
committerJames Lopez <james@jameslopez.es>2016-01-27 10:44:24 +0100
commiteef9c9d4476c46cf13215814944eed47576f862a (patch)
tree6c0aa1c1bfe3a56f1754daf4fe13943af15a8d18
parentd6a186135f320904507bf9f195fc9637719552d0 (diff)
downloadgitlab-ce-eef9c9d4476c46cf13215814944eed47576f862a.tar.gz
update fix based on feedback
-rw-r--r--app/controllers/groups_controller.rb3
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