Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi: Cleanup superfluous trailing newlines. #3176

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bech32/bech32_test.go
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -522,7 +522,6 @@ func TestConvertBitsFailures(t *testing.T) {
tc.err, err)
}
}

}

// BenchmarkConvertBitsDown benchmarks the speed and memory allocation behavior
Expand Down
3 changes: 1 addition & 2 deletions blockchain/stake/staketx_test.go
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion blockchain/stake/treasury_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,6 @@ func TestTSpendGenerated(t *testing.T) {
if err != nil {
t.Fatalf("checkTSpend: %v", err)
}

}

func TestTSpendErrors(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions blockchain/standalone/tx_test.go
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -151,7 +151,6 @@ func TestIsCoinbaseTx(t *testing.T) {
test.name, result, test.wantPostTrsy)
continue
}

}
}

Expand Down
2 changes: 0 additions & 2 deletions internal/blockchain/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}
}

Expand Down Expand Up @@ -3882,7 +3881,6 @@ func (b *BlockChain) checkTransactionsAndConnect(inputFees dcrutil.Amount,
subsidyTax)
return ruleError(ErrBadTreasurybaseAmountIn, errStr)
}

}

if len(txs) == 0 &&
Expand Down
1 change: 0 additions & 1 deletion internal/blockchain/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,6 @@ func TestExplicitVerUpgradesSemantics(t *testing.T) {
regSpendTx = g.CreateSpendTx(&regSpend, lowFee)
regSpendTx.TxIn[0].SignatureScript = nil
b.AddTransaction(regSpendTx)

})
g.AcceptTipBlock()

Expand Down
4 changes: 1 addition & 3 deletions internal/mining/bgblktmplgenerator_test.go
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -108,7 +108,6 @@ func TestWaitGroup(t *testing.T) {
t.Fatalf("Wait() should've returned")
}
}

},
}, {
name: "Wait() after Add(0) returns immediately",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion rpcclient/infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions rpcclient/mining.go
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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
Expand Down
Loading