mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-11 05:11:22 +01:00
linter: remove unsupported linters from the codebase
This commit is contained in:
@@ -41,7 +41,7 @@ func beforeMigrationFuncV11(t *testing.T, d *DB, invoices []Invoice) {
|
||||
invoiceNum++
|
||||
|
||||
var buf bytes.Buffer
|
||||
err := serializeInvoiceLegacy(&buf, &invoice) // nolint:scopelint
|
||||
err := serializeInvoiceLegacy(&buf, &invoice)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -1581,7 +1581,7 @@ func (i *InvoiceRegistry) notifyClients(hash lntypes.Hash,
|
||||
// invoiceSubscriptionKit defines that are common to both all invoice
|
||||
// subscribers and single invoice subscribers.
|
||||
type invoiceSubscriptionKit struct {
|
||||
id uint32 // nolint:structcheck
|
||||
id uint32
|
||||
|
||||
// quit is a chan mouted to InvoiceRegistry that signals a shutdown.
|
||||
quit chan struct{}
|
||||
|
||||
@@ -423,8 +423,6 @@ func (b *blindedForwardTest) cleanup() {
|
||||
|
||||
// createRouteToBlinded queries for a route from alice to the blinded path
|
||||
// provided.
|
||||
//
|
||||
//nolint:gomnd
|
||||
func (b *blindedForwardTest) createRouteToBlinded(paymentAmt int64,
|
||||
blindedPath *lnrpc.BlindedPaymentPath) *lnrpc.Route {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ type Fee struct {
|
||||
// type from a given TLV stream.
|
||||
func (l *Fee) Record() tlv.Record {
|
||||
return tlv.MakeStaticRecord(
|
||||
FeeRecordType, l, 8, feeEncoder, feeDecoder, //nolint:gomnd
|
||||
FeeRecordType, l, 8, feeEncoder, feeDecoder,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -2964,7 +2964,7 @@ func getRealChannelID(chanIDIndexBkt kvdb.RBucket,
|
||||
}
|
||||
|
||||
chanIDBytes := chanIDIndexBkt.Get(dbIDBytes)
|
||||
if len(chanIDBytes) != 32 { //nolint:gomnd
|
||||
if len(chanIDBytes) != 32 {
|
||||
return nil, fmt.Errorf("channel ID not found")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user