Skip to content

Commit 2497c60

Browse files
committed
fix bug introduced in 1296cda
License: MIT Signed-off-by: Steven Allen <[email protected]>
1 parent fa133bc commit 2497c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unixfs/mod/dagmodifier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (dm *DagModifier) modifyDag(n ipld.Node, offset uint64) (*cid.Cid, error) {
327327
return nil, err
328328
}
329329

330-
if dm.wrBuf.Len() > 0 {
330+
if dm.wrBuf.Len() == 0 {
331331
// No more bytes to write!
332332
break
333333
}

0 commit comments

Comments
 (0)