From 4a6fccaf69ec56cd2fbca2da65c78c6550db55ca Mon Sep 17 00:00:00 2001 From: wit liu <765765346@qq.com> Date: Wed, 17 Sep 2025 08:23:06 +0800 Subject: [PATCH] all: fix whitespace (#1506) Co-authored-by: wit --- cmd/XDC/accountcmd.go | 1 - contracts/XDCx/simulation/fee/trading/main.go | 1 - eth/filters/api.go | 1 - eth/filters/filter_system_test.go | 1 - eth/filters/filter_test.go | 1 - p2p/simulations/http.go | 1 - 6 files changed, 6 deletions(-) diff --git a/cmd/XDC/accountcmd.go b/cmd/XDC/accountcmd.go index 6805e435ec..c6a311789a 100644 --- a/cmd/XDC/accountcmd.go +++ b/cmd/XDC/accountcmd.go @@ -381,7 +381,6 @@ func importWallet(ctx *cli.Context) error { backends := am.Backends(keystore.KeyStoreType) if len(backends) == 0 { utils.Fatalf("Keystore is not available") - } ks := backends[0].(*keystore.KeyStore) passphrase := getPassPhrase("", false, 0, utils.MakePasswordList(ctx)) diff --git a/contracts/XDCx/simulation/fee/trading/main.go b/contracts/XDCx/simulation/fee/trading/main.go index aa8d096b75..faaedaf258 100644 --- a/contracts/XDCx/simulation/fee/trading/main.go +++ b/contracts/XDCx/simulation/fee/trading/main.go @@ -48,5 +48,4 @@ func main() { fmt.Println("UpdateFee: Get receipt failed", err) } fmt.Println("UpdateFee: Done receipt status", r.Status) - } diff --git a/eth/filters/api.go b/eth/filters/api.go index 6392094e2d..d4dadeb908 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -261,7 +261,6 @@ func (api *FilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc.Subsc } go func() { - for { select { case logs := <-matchedLogs: diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index 6bd32787e8..281a5a274a 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -104,7 +104,6 @@ func (b *testBackend) GetBody(ctx context.Context, hash common.Hash, number rpc. } func (b *testBackend) GetReceipts(ctx context.Context, blockHash common.Hash) (types.Receipts, error) { - if number := rawdb.ReadHeaderNumber(b.db, blockHash); number != nil { return rawdb.ReadReceipts(b.db, blockHash, *number, params.TestChainConfig), nil } diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go index ba13cdfc9b..05d348ff5b 100644 --- a/eth/filters/filter_test.go +++ b/eth/filters/filter_test.go @@ -74,7 +74,6 @@ func BenchmarkFilters(b *testing.B) { case 99999: receipt := makeReceipt(addr4) gen.AddUncheckedReceipt(receipt) - } }) for i, block := range chain { diff --git a/p2p/simulations/http.go b/p2p/simulations/http.go index 71a265c1b0..3acd8bb79b 100644 --- a/p2p/simulations/http.go +++ b/p2p/simulations/http.go @@ -365,7 +365,6 @@ func (s *Server) StopMocker(w http.ResponseWriter, req *http.Request) { // GetMockerList returns a list of available mockers func (s *Server) GetMockers(w http.ResponseWriter, req *http.Request) { - list := GetMockerList() s.JSON(w, http.StatusOK, list) }