From 4c562be51842842385cd9440e6ac1cd7a97c92df Mon Sep 17 00:00:00 2001 From: Cagdas Gerede <Earth@BlueSky> Date: Sat, 12 Nov 2016 16:42:36 +0300 Subject: [PATCH] Replaces conditional with guard statement. --- app/controllers/projects/forks_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/projects/forks_controller.rb b/app/controllers/projects/forks_controller.rb index ade01c7..6892fea 100644 --- a/app/controllers/projects/forks_controller.rb +++ b/app/controllers/projects/forks_controller.rb @@ -29,6 +29,7 @@ class Projects::ForksController < Projects::ApplicationController end def new + return authenticate_user! unless current_user @namespaces = current_user.manageable_namespaces @namespaces.delete(@project.namespace) end -- libgit2 0.27.1