mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
multi: fix linter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user