diff --git a/unixfs/mod/dagmodifier.go b/unixfs/mod/dagmodifier.go index c9bb17d35..ee6e3d9c9 100644 --- a/unixfs/mod/dagmodifier.go +++ b/unixfs/mod/dagmodifier.go @@ -416,7 +416,6 @@ func dagTruncate(nd *mdag.Node, size uint64, ds mdag.DAGService) (*mdag.Node, er return nil, err } - // TODO: sanity check size of truncated block ndata.AddBlockSize(size - cur) modified = nchild