multi: fix complaints from IDE and linter

Fixed unused param and nilness cond.
This commit is contained in:
yyforyongyu committed 2024-06-07 00:45:15 +08:00
1 parent a832371d61
commit 78cc1619d7
4 files changed
+11 -13

No files matched your search

+3 -3
View File
@@ -5677,7 +5677,7 @@ sendLoop:
func (r *rpcServer) SendPaymentSync(ctx context.Context,
nextPayment *lnrpc.SendRequest) (*lnrpc.SendResponse, error) {
return r.sendPaymentSync(ctx, &rpcPaymentRequest{
return r.sendPaymentSync(&rpcPaymentRequest{
SendRequest: nextPayment,
})
}
@@ -5698,12 +5698,12 @@ func (r *rpcServer) SendToRouteSync(ctx context.Context,
return nil, err
}
return r.sendPaymentSync(ctx, paymentRequest)
return r.sendPaymentSync(paymentRequest)
}
// sendPaymentSync is the synchronous variant of sendPayment. It will block and
// wait until the payment has been fully completed.
func (r *rpcServer) sendPaymentSync(ctx context.Context,
func (r *rpcServer) sendPaymentSync(
nextPayment *rpcPaymentRequest) (*lnrpc.SendResponse, error) {
// We don't allow payments to be sent while the daemon itself is still