lnrpc/invoicesrpc: linter fix

This commit is contained in:
Olaoluwa Osuntokun 2020-04-21 22:16:05 -07:00
parent 0bc05f9d65
commit ce0a61abeb
No known key found for this signature in database
GPG Key ID: BC13F65E2DC84465

@ -162,9 +162,9 @@ func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig,
switch {
// The value of the invoice must not be negative.
case invoice.Value < 0:
case int64(invoice.Value) < 0:
return nil, nil, fmt.Errorf("payments of negative value "+
"are not allowed, value is %v", invoice.Value)
"are not allowed, value is %v", int64(invoice.Value))
// Also ensure that the invoice is actually realistic, while preventing
// any issues due to underflow.