File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11module github.com/filecoin-project/go-data-segment
22
3- go 1.23.0
3+ go 1.24
44
55require (
66 github.com/filecoin-project/go-fil-commcid v0.1.0
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ func newBareTree(leafs uint64) *TreeData {
7777// Then decoding the tree, bottom-up, starting with the leafs as the amount of nodes in one level defines the amount of nodes in its parent level
7878// NOTE that correctness of the tree is NOT validated as part of this method
7979func DeserializeTree (tree []byte ) (* TreeData , error ) {
80- if tree == nil || len (tree ) < BytesInInt {
80+ if len (tree ) < BytesInInt {
8181 return nil , xerrors .New ("no tree encoded" )
8282 }
8383 lvlSize := binary .LittleEndian .Uint64 (tree [:BytesInInt ])
You can’t perform that action at this time.
0 commit comments