linter: fix lint issues after linter v2 update

This commit is contained in:
Slyghtning 2025-08-19 17:06:42 +02:00
parent bd6271e633
commit e98f733ef8
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
29 changed files with 65 additions and 59 deletions

View file

@ -25,7 +25,7 @@ func CalculateLoopOutCost(params *chaincfg.Params, loopOutSwap *loopdb.LoopOut,
paymentFees map[lntypes.Hash]lnwire.MilliSatoshi) (loopdb.SwapCost,
error) {
// First make sure that this swap is actually finished.
// First, make sure that this swap is actually finished.
if loopOutSwap.State().State.IsPending() {
return loopdb.SwapCost{}, fmt.Errorf("swap is not yet finished")
}
@ -41,8 +41,8 @@ func CalculateLoopOutCost(params *chaincfg.Params, loopOutSwap *loopdb.LoopOut,
}
// The swap hash is given and we don't need to get it from the
// swap invoice, however we'll decode it anyway to get the invoice amount
// that was paid in case we don't have the payment anymore.
// swap invoice, however we'll decode it anyway to get the invoice
// amount that was paid in case we don't have the payment anymore.
_, _, swapHash, swapPaymentAmount, err := swap.DecodeInvoice(
params, loopOutSwap.Contract.SwapInvoice,
)
@ -195,6 +195,6 @@ func MigrateLoopOutCosts(ctx context.Context, lnd lndclient.LndServices,
return err
}
// Finally mark the migration as done.
// Finally, mark the migration as done.
return db.SetMigration(ctx, costMigrationID)
}