summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-01-26 15:43:09 +0100
committerJames Lopez <james@jameslopez.es>2016-01-26 15:43:09 +0100
commitd6a186135f320904507bf9f195fc9637719552d0 (patch)
treea78a11046b9718d53108d2b0bab80402283c1812
parent89aeed183ccbadc9580945a68b8df83f50856c2c (diff)
downloadgitlab-ce-d6a186135f320904507bf9f195fc9637719552d0.tar.gz
fix for failing spec
-rw-r--r--app/controllers/groups_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index 828e5509262..f7c6607aff7 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -81,7 +81,8 @@ class GroupsController < Groups::ApplicationController
def group
@group ||= Group.find_by(path: params[:id])
- render_404 unless @group
+ return @group if @group
+ render_404
end
def load_projects