Replaces conditional with guard statement.
This commit is contained in:
parent
be6bcbe24e
commit
4c562be518
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue