From eef9c9d4476c46cf13215814944eed47576f862a Mon Sep 17 00:00:00 2001 From: James Lopez Date: Wed, 27 Jan 2016 10:44:24 +0100 Subject: update fix based on feedback --- app/controllers/groups_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1