aboutsummaryrefslogtreecommitdiffstats
path: root/bmt/bmt.go
diff options
context:
space:
mode:
authorYondon Fu <yondon.fu@gmail.com>2017-12-19 06:17:41 +0800
committerYondon Fu <yondon.fu@gmail.com>2017-12-19 06:17:41 +0800
commit3857cdc267e3192697f561df0a0f827f65dfb6b5 (patch)
tree401c52c4972a68229ea283a394a0b0a5f3cfdc8e /bmt/bmt.go
parenta5330fe0c569b75cb8a524f60f7e8dc06498262b (diff)
parentfe070ab5c32702033489f1b9d1655ea1b894c29e (diff)
downloadgo-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.tar.gz
go-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.tar.zst
go-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.zip
Merge branch 'master' into abi-offset-fixed-arrays
Diffstat (limited to 'bmt/bmt.go')
-rw-r--r--bmt/bmt.go3
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
}