appease go lint
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Mar 23, 2018 at 18:02 UTC
71a0a5c837d6baa1a97bad3776175a19166de7ad
1 file changed
+1
-4
unixfs/archive/tar/writer.go
+1
-4
@@ -53,10 +53,7 @@ func (w *Writer) writeDir(nd *mdag.ProtoNode, fpath string) error {
53
return err
54
}
55
npath := path.Join(fpath, l.Name)
56
- if err := w.WriteNode(child, npath); err != nil {
57
- return err
58
- }
59
- return nil
56
+ return w.WriteNode(child, npath)
57
})
58
}
59