Skip to content

Commit

Permalink
multi: Cleanup superfluous trailing newlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Sep 12, 2023
1 parent 7ab7fb5 commit c6e6432
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,6 @@ func loadConfig() (*config, []string, error) {
err := fmt.Errorf(str, funcName, err)
fmt.Fprintln(os.Stderr, err)
return nil, nil, err

}
}

Expand Down Expand Up @@ -810,7 +809,6 @@ func loadConfig() (*config, []string, error) {
fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, usageMessage)
return nil, nil, err

}

// Generate self-signed wallet TLS cert and key if they do not
Expand All @@ -824,7 +822,6 @@ func loadConfig() (*config, []string, error) {
fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, usageMessage)
return nil, nil, err

}
}
}
Expand Down
1 change: 0 additions & 1 deletion pool/boltupgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ func verifyV3Upgrade(t *testing.T, db *BoltDB) {
if !bytes.Equal(k, []byte(id)) {
return fmt.Errorf("%s: expected payment id (%s) to be "+
"the same as its key (%x)", funcName, id, k)

}

if payment.Source == nil {
Expand Down
3 changes: 1 addition & 2 deletions pool/hashdata_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021 The Decred developers
// Copyright (c) 2021-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 @@ -138,5 +138,4 @@ func testHashData(t *testing.T) {
t.Fatalf("expected a value not found error for "+
"pruned hash data, got %v", err)
}

}
1 change: 0 additions & 1 deletion pool/paymentmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,6 @@ func (pm *PaymentMgr) payDividends(ctx context.Context, height uint32, treasuryA
desc := fmt.Sprintf("%s: unable to sign transaction: %v",
funcName, err)
return errs.PoolError(errs.SignTx, desc)

}

pubTxReq := &walletrpc.PublishTransactionRequest{
Expand Down
1 change: 0 additions & 1 deletion pool/paymentmgr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ func testPaymentMgrPPLNS(t *testing.T) {
t.Fatalf("expected the sum of all payments to be %v, got %v",
coinbase, sum)
}

}

func testPaymentMgrMaturity(t *testing.T) {
Expand Down

0 comments on commit c6e6432

Please sign in to comment.