diff --git a/eth/protocols/snap/sync_test.go b/eth/protocols/snap/sync_test.go index f1d1512d3b..b2753eb0a3 100644 --- a/eth/protocols/snap/sync_test.go +++ b/eth/protocols/snap/sync_test.go @@ -1526,11 +1526,10 @@ func getCodeByHash(hash common.Hash) []byte { // makeAccountTrieNoStorage spits out a trie, along with the leafs func makeAccountTrieNoStorage(n int) (string, *trie.Trie, entrySlice) { + // nolint:prealloc var ( db = trie.NewDatabase(rawdb.NewMemoryDatabase()) accTrie = trie.NewEmpty(db) - - // nolint:prealloc entries entrySlice )