Commit 4c562be5 authored by Cagdas Gerede's avatar Cagdas Gerede

Replaces conditional with guard statement.

parent be6bcbe2
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment