all repos — searchix @ c4f8adb01ae4f74ed648ac0d58d423857c4d168a

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: ignore unused variable
Alan Pearce alan@alanpearce.eu
Sat, 13 Jul 2024 16:49:37 +0200
commit

c4f8adb01ae4f74ed648ac0d58d423857c4d168a

parent

56f1c5d386db3f19b4d5c645ece83a25d9a58759

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M internal/server/mux.gointernal/server/mux.go
@@ -314,7 +314,7 @@ } 
 	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{