multi: fix issues reported by whitespace linter
This commit is contained in:
14 files changed
+26
-18
No files matched your search
@@ -1463,7 +1463,6 @@ func (d *DB) InvoicesSettledSince(sinceSettleIndex uint64) ([]Invoice, error) {
|
||||
seqNo, indexValue := invoiceCursor.Next()
|
||||
|
||||
for ; seqNo != nil && bytes.Compare(seqNo, startIndex[:]) > 0; seqNo, indexValue = invoiceCursor.Next() {
|
||||
|
||||
// Depending on the length of the index value, this may
|
||||
// or may not be an AMP invoice, so we'll extract the
|
||||
// invoice value into two components: the invoice num,
|
||||
|
||||
@@ -81,8 +81,8 @@ func MigrateFwdPkgCleanup(tx kvdb.RwTx) error {
|
||||
|
||||
// Otherwise, wipe all the forwarding packages.
|
||||
if err := fwdPkgBkt.DeleteNestedBucket(
|
||||
sourceBytes[:]); err != nil {
|
||||
|
||||
sourceBytes[:],
|
||||
); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
@@ -615,9 +615,8 @@ func TestFetchPaymentWithSequenceNumber(t *testing.T) {
|
||||
test := test
|
||||
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
err := kvdb.Update(db,
|
||||
func(tx walletdb.ReadWriteTx) error {
|
||||
|
||||
err := kvdb.Update(
|
||||
db, func(tx walletdb.ReadWriteTx) error {
|
||||
var seqNrBytes [8]byte
|
||||
byteOrder.PutUint64(
|
||||
seqNrBytes[:], test.sequenceNumber,
|
||||
@@ -627,7 +626,8 @@ func TestFetchPaymentWithSequenceNumber(t *testing.T) {
|
||||
tx, test.paymentHash, seqNrBytes[:],
|
||||
)
|
||||
return err
|
||||
}, func() {})
|
||||
}, func() {},
|
||||
)
|
||||
require.Equal(t, test.expectedErr, err)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user