Update portal/x402/payment.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

gosunuts committed Jun 6, 2026 at 22:09 UTC e0d279191ab411a38b7edb0849bca4523af609f5
1 file changed -4
portal/x402/payment.go
-4
@@ -191,10 +191,6 @@ func (p *Payment) Settle(ctx context.Context, w http.ResponseWriter, r *http.Req
191 if !ok {
192 return nil, false
193 }
194 - if payment == nil {
195 - http.Error(w, "x402 payment is missing", http.StatusInternalServerError)
196 - return nil, false
197 - }
194 settled, err := p.facilitator.Settle(ctx, payment, &p.requirements)
195 if err != nil {
196 log.Warn().