From 3e2ccdc6c8f71cc1878b398a1f60df1f71ecd92a Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 23 Aug 2023 14:58:33 -0500 Subject: [PATCH] multi: Cleanup superfluous trailing newlines. --- bech32/bech32_test.go | 3 +-- blockchain/stake/staketx_test.go | 3 +-- blockchain/stake/treasury_test.go | 1 - blockchain/standalone/tx_test.go | 3 +-- internal/blockchain/validate.go | 2 -- internal/blockchain/validate_test.go | 1 - internal/mining/bgblktmplgenerator_test.go | 4 +--- rpcclient/infrastructure.go | 1 - rpcclient/mining.go | 3 +-- 9 files changed, 5 insertions(+), 16 deletions(-) diff --git a/bech32/bech32_test.go b/bech32/bech32_test.go index 5b1c3fc7..4d65f3e4 100644 --- a/bech32/bech32_test.go +++ b/bech32/bech32_test.go @@ -1,5 +1,5 @@ // Copyright (c) 2017 The btcsuite developers -// Copyright (c) 2019-2020 The Decred developers +// Copyright (c) 2019-2023 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. @@ -522,7 +522,6 @@ func TestConvertBitsFailures(t *testing.T) { tc.err, err) } } - } // BenchmarkConvertBitsDown benchmarks the speed and memory allocation behavior diff --git a/blockchain/stake/staketx_test.go b/blockchain/stake/staketx_test.go index 8e364f4b..a41e8fdc 100644 --- a/blockchain/stake/staketx_test.go +++ b/blockchain/stake/staketx_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2015-2022 The Decred developers +// Copyright (c) 2015-2023 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. @@ -858,7 +858,6 @@ func TestSSGenErrors(t *testing.T) { if IsSSGen(ssgenInvalidTVote3.MsgTx()) { t.Errorf("IsSSGen claimed an invalid ssgen is valid") } - } // TestSSGenTreasuryVotes verifies that valid treasury votes return hashes. diff --git a/blockchain/stake/treasury_test.go b/blockchain/stake/treasury_test.go index fa04f311..7576a098 100644 --- a/blockchain/stake/treasury_test.go +++ b/blockchain/stake/treasury_test.go @@ -1044,7 +1044,6 @@ func TestTSpendGenerated(t *testing.T) { if err != nil { t.Fatalf("checkTSpend: %v", err) } - } func TestTSpendErrors(t *testing.T) { diff --git a/blockchain/standalone/tx_test.go b/blockchain/standalone/tx_test.go index d8d18b5d..337f126a 100644 --- a/blockchain/standalone/tx_test.go +++ b/blockchain/standalone/tx_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2019-2022 The Decred developers +// Copyright (c) 2019-2023 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. @@ -151,7 +151,6 @@ func TestIsCoinbaseTx(t *testing.T) { test.name, result, test.wantPostTrsy) continue } - } } diff --git a/internal/blockchain/validate.go b/internal/blockchain/validate.go index f6e4c34a..1cc2563c 100644 --- a/internal/blockchain/validate.go +++ b/internal/blockchain/validate.go @@ -2223,7 +2223,6 @@ func (b *BlockChain) checkBlockContext(block *dcrutil.Block, prevNode *blockNode str := fmt.Sprintf("block contains unfinalized stake "+ "transaction %v", stx.Hash()) return ruleError(ErrUnfinalizedTx, str) - } } @@ -3882,7 +3881,6 @@ func (b *BlockChain) checkTransactionsAndConnect(inputFees dcrutil.Amount, subsidyTax) return ruleError(ErrBadTreasurybaseAmountIn, errStr) } - } if len(txs) == 0 && diff --git a/internal/blockchain/validate_test.go b/internal/blockchain/validate_test.go index 2ea38663..61fd06d3 100644 --- a/internal/blockchain/validate_test.go +++ b/internal/blockchain/validate_test.go @@ -1172,7 +1172,6 @@ func TestExplicitVerUpgradesSemantics(t *testing.T) { regSpendTx = g.CreateSpendTx(®Spend, lowFee) regSpendTx.TxIn[0].SignatureScript = nil b.AddTransaction(regSpendTx) - }) g.AcceptTipBlock() diff --git a/internal/mining/bgblktmplgenerator_test.go b/internal/mining/bgblktmplgenerator_test.go index 19a8a9b6..6a0303d8 100644 --- a/internal/mining/bgblktmplgenerator_test.go +++ b/internal/mining/bgblktmplgenerator_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2020 The Decred developers +// Copyright (c) 2020-2023 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. @@ -108,7 +108,6 @@ func TestWaitGroup(t *testing.T) { t.Fatalf("Wait() should've returned") } } - }, }, { name: "Wait() after Add(0) returns immediately", @@ -137,7 +136,6 @@ func TestWaitGroup(t *testing.T) { if !waitReturned(c) { t.Fatalf("Second usage of Wait() after Done() should return") } - }, }, { name: "negative Add() panics", diff --git a/rpcclient/infrastructure.go b/rpcclient/infrastructure.go index 808e12eb..a764709d 100644 --- a/rpcclient/infrastructure.go +++ b/rpcclient/infrastructure.go @@ -816,7 +816,6 @@ cleanup: } c.wg.Done() log.Tracef("RPC client send handler done for %s", c.config.Host) - } // sendPostRequest sends the passed HTTP request to the RPC server using the diff --git a/rpcclient/mining.go b/rpcclient/mining.go index d677bd34..8c0a6744 100644 --- a/rpcclient/mining.go +++ b/rpcclient/mining.go @@ -1,5 +1,5 @@ // Copyright (c) 2014-2016 The btcsuite developers -// Copyright (c) 2015-2022 The Decred developers +// Copyright (c) 2015-2023 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. @@ -388,7 +388,6 @@ func (r *FutureSubmitBlockResult) Receive() error { } return nil - } // SubmitBlockAsync returns an instance of a type that can be used to get the