Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
7f107ac6
Commit
7f107ac6
authored
6 years ago
by
Whyrusleeping
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4833 from ipfs/misc/remove-dead-code
misc: Remove some dead code
parents
8af3f40f
d87b75cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
archive/archive.go
archive/archive.go
+1
-1
archive/tar/writer.go
archive/tar/writer.go
+1
-1
No files found.
archive/archive.go
View file @
7f107ac6
...
...
@@ -82,7 +82,7 @@ func DagArchive(ctx context.Context, nd ipld.Node, name string, dag ipld.DAGServ
// the case for 1. archive, and 2. not archived and not compressed, in which tar is used anyway as a transport format
// construct the tar writer
w
,
err
:=
tar
.
NewWriter
(
ctx
,
dag
,
archive
,
compression
,
maybeGzw
)
w
,
err
:=
tar
.
NewWriter
(
ctx
,
dag
,
maybeGzw
)
if
checkErrAndClosePipe
(
err
)
{
return
nil
,
err
}
...
...
This diff is collapsed.
Click to expand it.
archive/tar/writer.go
View file @
7f107ac6
...
...
@@ -30,7 +30,7 @@ type Writer struct {
}
// NewWriter wraps given io.Writer.
func
NewWriter
(
ctx
context
.
Context
,
dag
ipld
.
DAGService
,
archive
bool
,
compression
int
,
w
io
.
Writer
)
(
*
Writer
,
error
)
{
func
NewWriter
(
ctx
context
.
Context
,
dag
ipld
.
DAGService
,
w
io
.
Writer
)
(
*
Writer
,
error
)
{
return
&
Writer
{
Dag
:
dag
,
TarW
:
tar
.
NewWriter
(
w
),
...
...
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