multi: fix linter

This commit is contained in:
ziggie committed 2025-08-14 19:53:18 +02:00
1 parent e24ae0d7f3
commit 2b856f036e
9 files changed
+50 -35

No files matched your search

+5 -1
View File
@@ -1448,7 +1448,11 @@ func (s *Server) trackPaymentStream(context context.Context,
// No more payment updates.
return nil
}
result := item.(*paymentsdb.MPPayment)
result, ok := item.(*paymentsdb.MPPayment)
if !ok {
return fmt.Errorf("unexpected payment type: %T",
item)
}
log.Tracef("Payment %v updated to state %v",
result.Info.PaymentIdentifier, result.Status)