Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 714e540

Browse files
author
Alan Shaw
committed
fix: bad merge
1 parent 08d8d9f commit 714e540

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/components/add/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,15 @@ function transformFile (opts) {
6565
cid = cid.toV1()
6666
}
6767

68-
const hash = cid.toBaseEncodedString()
69-
let path = file.path ? file.path : hash
68+
let path = file.path ? file.path : cid.toString()
7069

7170
if (opts.wrapWithDirectory && !file.path) {
7271
path = ''
7372
}
7473

7574
yield {
7675
path,
77-
hash,
76+
cid,
7877
size: file.size,
7978
mode: file.unixfs && file.unixfs.mode,
8079
mtime: file.unixfs && file.unixfs.mtime

0 commit comments

Comments
 (0)