From ce0a61abeb20ed0bd257fe3ea210434771d7dff2 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 21 Apr 2020 22:16:05 -0700 Subject: [PATCH] lnrpc/invoicesrpc: linter fix --- lnrpc/invoicesrpc/addinvoice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnrpc/invoicesrpc/addinvoice.go b/lnrpc/invoicesrpc/addinvoice.go index c027208a..171e85b7 100644 --- a/lnrpc/invoicesrpc/addinvoice.go +++ b/lnrpc/invoicesrpc/addinvoice.go @@ -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.