From 59a0610670e2fcf35a7b32ca9d488c77c1c277cf Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Wed, 30 Oct 2019 10:40:45 +0800 Subject: [PATCH] core/rawdb: fix lint --- core/rawdb/accessors_chain_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/rawdb/accessors_chain_test.go b/core/rawdb/accessors_chain_test.go index 9b30c46a50..bb7dad5dff 100644 --- a/core/rawdb/accessors_chain_test.go +++ b/core/rawdb/accessors_chain_test.go @@ -20,10 +20,10 @@ import ( "bytes" "encoding/hex" "fmt" - "math/big" - "testing" - "os" "io/ioutil" + "math/big" + "os" + "testing" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" @@ -410,7 +410,7 @@ func TestAncientStorage(t *testing.T) { t.Fatalf("no td returned") } // Use a fake hash for data retrieval, nothing should be returned. - fakeHash := common.BytesToHash([]byte{0x01,0x02,0x03}) + fakeHash := common.BytesToHash([]byte{0x01, 0x02, 0x03}) if blob := ReadHeaderRLP(db, fakeHash, number); len(blob) != 0 { t.Fatalf("invalid header returned") } @@ -424,4 +424,3 @@ func TestAncientStorage(t *testing.T) { t.Fatalf("invalid td returned") } } -