Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-11-20 14:21:41 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-11-20 14:21:41 +0300
commitb8d8292bef996a5d074b21a82d4faec0edb2e2bf (patch)
treec3f6d230485fc4c2ad7ede70b1ad8a4e4e2fea24 /lib/gitlab/lfs
parent14d95b0529eacb8f42c5184fb71bff3f326d1670 (diff)
Fix upload tests, reformat code and make rubocop happy
Diffstat (limited to 'lib/gitlab/lfs')
-rw-r--r--lib/gitlab/lfs/response.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/lfs/response.rb b/lib/gitlab/lfs/response.rb
index 0371e1a7107..ada518f9e04 100644
--- a/lib/gitlab/lfs/response.rb
+++ b/lib/gitlab/lfs/response.rb
@@ -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'] = {