From c18797a79c8b224aaac37706f2a78f7353206bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=92=E1=85=A1=E1=86=AB=E1=84=8B=E1=85=AF=E1=86=AB?= =?UTF-8?q?=E1=84=8C=E1=85=AE=E1=86=AB?= Date: Mon, 25 Sep 2023 14:21:32 +0900 Subject: [PATCH] trie: fixed make lint error --- trie/sync.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trie/sync.go b/trie/sync.go index 7f4e67dbfecb..f3bda8a9a72e 100644 --- a/trie/sync.go +++ b/trie/sync.go @@ -249,11 +249,11 @@ func (s *Sync) Missing(max int) ([]string, []common.Hash, []common.Hash) { s.queue.Pop() s.fetches[depth]++ - switch item.(type) { + switch item := item.(type) { case common.Hash: - codeHashes = append(codeHashes, item.(common.Hash)) + codeHashes = append(codeHashes, item) case string: - path := item.(string) + path := item req, ok := s.nodeReqs[path] if !ok { log.Error("Missing node request", "path", path)