Replaces conditional with guard statement.
This commit is contained in:
parent
be6bcbe24e
commit
4c562be518
|
@ -29,6 +29,7 @@ class Projects::ForksController < Projects::ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
return authenticate_user! unless current_user
|
||||||
@namespaces = current_user.manageable_namespaces
|
@namespaces = current_user.manageable_namespaces
|
||||||
@namespaces.delete(@project.namespace)
|
@namespaces.delete(@project.namespace)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue