mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth tests: linter nitpicks
This commit is contained in:
parent
c4c376521a
commit
650b5e80a6
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ func accountRangeTest(t *testing.T, trie *state.Trie, statedb *state.StateDB, st
|
||||||
if len(result.Accounts) != expectedNum {
|
if len(result.Accounts) != expectedNum {
|
||||||
t.Fatalf("expected %d results, got %d", expectedNum, len(result.Accounts))
|
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{}) {
|
if address == (common.Address{}) {
|
||||||
t.Fatalf("empty address returned")
|
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)
|
secondResult := accountRangeTest(t, &trie, state, common.BytesToHash(firstResult.Next), AccountRangeMaxResults, AccountRangeMaxResults)
|
||||||
|
|
||||||
hList := make(resultHash, 0)
|
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
|
// If address is empty, then it makes no sense to compare
|
||||||
// them as they might be two different accounts.
|
// them as they might be two different accounts.
|
||||||
if addr1 == (common.Address{}) {
|
if addr1 == (common.Address{}) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue