eth tests: linter nitpicks

This commit is contained in:
Martin Holst Swende 2020-02-20 12:22:30 +01:00
parent c4c376521a
commit 650b5e80a6
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -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{}) {