Commit b8d8292b authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix upload tests, reformat code and make rubocop happy

parent 14d95b05
......@@ -321,7 +321,6 @@ module Gitlab
def download_hypermedia_links(all_objects, existing_objects)
all_objects.each do |object|
# generate links only for existing objects
if existing_objects.include?(object['oid'])
object['actions'] = {
'download' => {
......@@ -344,7 +343,7 @@ module Gitlab
def upload_hypermedia_links(all_objects, existing_objects)
all_objects.each do |object|
# generate links only for non-existing objects
# generate actions only for non-existing objects
next if existing_objects.include?(object['oid'])
object['actions'] = {
......
This diff is collapsed.
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