Skip to content
Snippets Groups Projects
Commit 3b91c927 authored by Cagdas Gerede's avatar Cagdas Gerede
Browse files

Replace conditional with a guard statement.

parent 4acedecc
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -29,12 +29,9 @@ class Projects::ForksController < Projects::ApplicationController
end
 
def new
if current_user.nil?
authenticate_user!
else
@namespaces = current_user.manageable_namespaces
@namespaces.delete(@project.namespace)
end
return authenticate_user! unless current_user
@namespaces = current_user.manageable_namespaces
@namespaces.delete(@project.namespace)
end
 
def create
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment