Skip to content

Commit

Permalink
coderabbit loop syntax change suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Dec 10, 2024
1 parent 599044d commit d64a066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merkle/merkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (m *Merkle) fillLeaves() ([]merkletypes.Node, error) {

newNodes := make([]merkletypes.Node, 0)
lastLeaf := m.workingTree.LastSiblings[0]
for range numRestLeaves {
for i := uint64(0); i < numRestLeaves; i++ {
nodes, err := m.InsertLeaf(lastLeaf)
if err != nil {
return nil, err
Expand Down

0 comments on commit d64a066

Please sign in to comment.