Skip to content

Commit 57fa8d0

Browse files
authored
Merge pull request #23 from filecoin-project/uci/update-go
ci: uci/update-go
2 parents 5b65352 + 91d2afb commit 57fa8d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/filecoin-project/go-data-segment
22

3-
go 1.23.0
3+
go 1.24
44

55
require (
66
github.com/filecoin-project/go-fil-commcid v0.1.0

merkletree/tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
7979
func 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])

0 commit comments

Comments
 (0)