From c4f8adb01ae4f74ed648ac0d58d423857c4d168a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 13 Jul 2024 16:49:37 +0200 Subject: refactor: ignore unused variable --- internal/server/mux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/server/mux.go b/internal/server/mux.go index e869e14..66da7b5 100644 --- a/internal/server/mux.go +++ b/internal/server/mux.go @@ -314,7 +314,7 @@ func NewMux( mux.HandleFunc("/options/{source}/opensearch.xml", createOpenSearchXMLHandler(config.Options)) mux.HandleFunc("/packages/{source}/opensearch.xml", createOpenSearchXMLHandler(config.Packages)) - mux.HandleFunc("/all/opensearch.xml", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/all/opensearch.xml", func(w http.ResponseWriter, _ *http.Request) { w.Header().Add("Cache-Control", "max-age=604800") w.Header().Set("Content-Type", "application/opensearchdescription+xml") osd := &opensearch.Description{ -- cgit 1.4.1