Commit 23425401 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Rubocop

parent d199b3cd
......@@ -16,12 +16,12 @@ class Projects::LfsStorageController < Projects::GitHttpClientController
def upload_authorize
render(
json: {
StoreLFSPath: "#{Gitlab.config.lfs.storage_path}/tmp/upload",
LfsOid: oid,
LfsSize: size,
},
content_type: 'application/json; charset=utf-8'
json: {
StoreLFSPath: "#{Gitlab.config.lfs.storage_path}/tmp/upload",
LfsOid: oid,
LfsSize: size,
},
content_type: 'application/json; charset=utf-8'
)
end
......@@ -103,4 +103,3 @@ class Projects::LfsStorageController < Projects::GitHttpClientController
end
end
end
......@@ -56,7 +56,8 @@ module LfsHelper
@storage_project ||= begin
result = project
while result.forked? do
loop do
break unless result.forked?
result = result.forked_from_project
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