multi: fix newly detected linter issues
This commit is contained in:
30 files changed
+106
-118
No files matched your search
@@ -18,7 +18,6 @@ import (
|
||||
"github.com/btcsuite/btcutil/hdkeychain"
|
||||
"github.com/btcsuite/btcwallet/chain"
|
||||
"github.com/btcsuite/btcwallet/waddrmgr"
|
||||
"github.com/btcsuite/btcwallet/wallet"
|
||||
base "github.com/btcsuite/btcwallet/wallet"
|
||||
"github.com/btcsuite/btcwallet/wallet/txauthor"
|
||||
"github.com/btcsuite/btcwallet/wallet/txrules"
|
||||
@@ -200,7 +199,7 @@ func LoaderWithExternalWalletDB(db kvdb.Backend) LoaderOption {
|
||||
|
||||
// NewWalletLoader constructs a wallet loader.
|
||||
func NewWalletLoader(chainParams *chaincfg.Params, recoveryWindow uint32,
|
||||
opts ...LoaderOption) (*wallet.Loader, error) {
|
||||
opts ...LoaderOption) (*base.Loader, error) {
|
||||
|
||||
cfg := &loaderCfg{}
|
||||
|
||||
|
||||
@@ -657,7 +657,7 @@ func (cb *CommitmentBuilder) createUnsignedCommitmentTx(ourBalance,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cltvs = append(cltvs, htlc.Timeout)
|
||||
cltvs = append(cltvs, htlc.Timeout) // nolint:makezero
|
||||
}
|
||||
for _, htlc := range filteredHTLCView.theirUpdates {
|
||||
if HtlcIsDust(
|
||||
@@ -674,7 +674,7 @@ func (cb *CommitmentBuilder) createUnsignedCommitmentTx(ourBalance,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cltvs = append(cltvs, htlc.Timeout)
|
||||
cltvs = append(cltvs, htlc.Timeout) // nolint:makezero
|
||||
}
|
||||
|
||||
// Set the state hint of the commitment transaction to facilitate
|
||||
|
||||
Reference in new issue
Block a user