From 3628e65378928508dfa63f086673497858a5af47 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Thu, 9 Apr 2020 19:03:31 +0200 Subject: [PATCH] channeldb: (nit) remove size argument from map make --- channeldb/invoices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channeldb/invoices.go b/channeldb/invoices.go index f1954bf3..23c10dc6 100644 --- a/channeldb/invoices.go +++ b/channeldb/invoices.go @@ -1218,7 +1218,7 @@ func deserializeInvoice(r io.Reader) (Invoice, error) { // deserializeHtlcs reads a list of invoice htlcs from a reader and returns it // as a map. func deserializeHtlcs(r io.Reader) (map[CircuitKey]*InvoiceHTLC, error) { - htlcs := make(map[CircuitKey]*InvoiceHTLC, 0) + htlcs := make(map[CircuitKey]*InvoiceHTLC) for { // Read the length of the tlv stream for this htlc.