Commit 23425401 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Rubocop

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