Skip to content

Commit

Permalink
Run gofmt against source code (algorand#1797)
Browse files Browse the repository at this point in the history
Run gofmt against source code, and update coding style.
  • Loading branch information
tsachiherman authored Dec 30, 2020
1 parent 187f68e commit 5f7a484
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions merkletrie/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,22 @@ func (n *node) add(cache *merkleTrieCache, d []byte, path []byte) (nodeID stored

if n.hash[idiff] < d[idiff] {
pnode.children = []childEntry{
childEntry{
{
id: curChildNodeID,
hashIndex: n.hash[idiff],
},
childEntry{
{
id: newChildNodeID,
hashIndex: d[idiff],
},
}
} else {
pnode.children = []childEntry{
childEntry{
{
id: newChildNodeID,
hashIndex: d[idiff],
},
childEntry{
{
id: curChildNodeID,
hashIndex: n.hash[idiff],
},
Expand All @@ -145,7 +145,7 @@ func (n *node) add(cache *merkleTrieCache, d []byte, path []byte) (nodeID stored
pnode2, nodeID2 := cache.allocateNewNode()
pnode2.childrenMask.SetBit(d[i])
pnode2.children = []childEntry{
childEntry{
{
id: nodeID,
hashIndex: d[i],
},
Expand Down

0 comments on commit 5f7a484

Please sign in to comment.