From 650b5e80a639fdddcb6aa3bcb9c607e30e0c4c07 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 20 Feb 2020 12:22:30 +0100 Subject: [PATCH] eth tests: linter nitpicks --- eth/api_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/api_test.go b/eth/api_test.go index eee976b1a1..04cc891dd1 100644 --- a/eth/api_test.go +++ b/eth/api_test.go @@ -39,7 +39,7 @@ func accountRangeTest(t *testing.T, trie *state.Trie, statedb *state.StateDB, st if len(result.Accounts) != expectedNum { t.Fatalf("expected %d results, got %d", expectedNum, len(result.Accounts)) } - for address, _ := range result.Accounts { + for address := range result.Accounts { if address == (common.Address{}) { t.Fatalf("empty address returned") } @@ -88,7 +88,7 @@ func TestAccountRange(t *testing.T) { secondResult := accountRangeTest(t, &trie, state, common.BytesToHash(firstResult.Next), AccountRangeMaxResults, AccountRangeMaxResults) hList := make(resultHash, 0) - for addr1, _ := range firstResult.Accounts { + for addr1 := range firstResult.Accounts { // If address is empty, then it makes no sense to compare // them as they might be two different accounts. if addr1 == (common.Address{}) {