From a44aca825ca3f24e2408d8bbfbd4be12f518ad7e Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 8 Dec 2023 11:21:23 +0100 Subject: [PATCH] trie: gofmt --- trie/sync.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trie/sync.go b/trie/sync.go index 5a6ca5791c..908dbde147 100644 --- a/trie/sync.go +++ b/trie/sync.go @@ -258,7 +258,7 @@ func NewSync(root common.Hash, database ethdb.KeyValueReader, callback LeafCallb func (s *Sync) AddSubTrie(root common.Hash, path []byte, parent common.Hash, parentPath []byte, callback LeafCallback) { if root == types.EmptyRootHash { return - } + } owner, inner := ResolvePath(path) exist, inconsistent := s.hasNode(owner, inner, root) if exist { @@ -601,7 +601,7 @@ func (s *Sync) children(req *nodeRequest, object node) ([]*nodeRequest, error) { defer pending.Done() owner, inner := ResolvePath(path) exist, inconsistent := s.hasNode(owner, inner, hash) - if exist { + if exist { return } else if inconsistent { // There is a pre-existing node with the wrong hash in DB, remove it.