From a8e85c4f87ea376aa6db81108096aecb10463c9b Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Thu, 13 Jul 2023 12:30:53 +0800 Subject: [PATCH] fix : lint --- eth/protocols/snap/sync_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 )