lnrpc/invoicesrpc: linter fix
This commit is contained in:
parent
0bc05f9d65
commit
ce0a61abeb
@ -162,9 +162,9 @@ func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig,
|
|||||||
|
|
||||||
switch {
|
switch {
|
||||||
// The value of the invoice must not be negative.
|
// 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 "+
|
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
|
// Also ensure that the invoice is actually realistic, while preventing
|
||||||
// any issues due to underflow.
|
// any issues due to underflow.
|
||||||
|
Loading…
Reference in New Issue
Block a user