From d6733135abed20007bdf5a89e55ba2f6dd4dd331 Mon Sep 17 00:00:00 2001 From: nic Date: Mon, 14 Oct 2024 16:58:36 -0400 Subject: [PATCH] updated a line that was producing a warning message --- internal/handlers/web/invoices.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/handlers/web/invoices.go b/internal/handlers/web/invoices.go index d791068..0d83dd5 100644 --- a/internal/handlers/web/invoices.go +++ b/internal/handlers/web/invoices.go @@ -106,12 +106,8 @@ func handleInvoiceSearch(w http.ResponseWriter, r *http.Request, session *api.Se invoice["id"] = fmt.Sprintf("%.0f", id) } - // log.Printf("Invoice found: %+v", invoice) - - if invoice != nil { - // Add the buttons to display - invoice["buttons"] = getInvoiceStatusButtons(invoice["id"].(string), invoice["status"].(string)) - } + // Add the buttons to display + invoice["buttons"] = getInvoiceStatusButtons(invoice["id"].(string), invoice["status"].(string)) err = tmpl.ExecuteTemplate(w, "invoice_search_results", invoice) if err != nil {