Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
760dc3e4
Commit
760dc3e4
authored
Nov 20, 2015
by
Kamil Trzcinski
Committed by
Marin Jankovski
Nov 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix upload tests, reformat code and make rubocop happy
parent
7ea48bfb
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
122 deletions
+110
-122
lib/gitlab/lfs/response.rb
lib/gitlab/lfs/response.rb
+1
-2
spec/lib/gitlab/lfs/lfs_router_spec.rb
spec/lib/gitlab/lfs/lfs_router_spec.rb
+109
-120
No files found.
lib/gitlab/lfs/response.rb
View file @
760dc3e4
...
...
@@ -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
link
s only for non-existing objects
# generate
action
s only for non-existing objects
next
if
existing_objects
.
include?
(
object
[
'oid'
])
object
[
'actions'
]
=
{
...
...
spec/lib/gitlab/lfs/lfs_router_spec.rb
View file @
760dc3e4
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment