diff options
Diffstat (limited to 'bmt/bmt.go')
-rw-r--r-- | bmt/bmt.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bmt/bmt.go b/bmt/bmt.go index d62365bb1..4b65b1d94 100644 --- a/bmt/bmt.go +++ b/bmt/bmt.go @@ -260,8 +260,7 @@ func NewTree(hasher BaseHasher, segmentSize, segmentCount int) *Tree { for d := 1; d <= depth(segmentCount); d++ { nodes := make([]*Node, count) for i := 0; i < len(nodes); i++ { - var parent *Node - parent = prevlevel[i/2] + parent := prevlevel[i/2] t := NewNode(level, i, parent) nodes[i] = t } |