Replaces conditional with guard statement.

This commit is contained in:
Cagdas Gerede 2016-11-12 16:42:36 +03:00
parent be6bcbe24e
commit 4c562be518
1 changed files with 1 additions and 0 deletions

View File

@ -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