From 80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 13:04:15 +0800 Subject: *.go: Linting --- handle_index.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'handle_index.go') diff --git a/handle_index.go b/handle_index.go index 5d54e6a..ebbc4e0 100644 --- a/handle_index.go +++ b/handle_index.go @@ -10,7 +10,7 @@ func handle_index(w http.ResponseWriter, r *http.Request) { entries, err := os.ReadDir(config.Git.Root) if err != nil { - w.Write([]byte("Error listing categories: " + err.Error())) + _, _ = w.Write([]byte("Error listing categories: " + err.Error())) return } @@ -22,7 +22,7 @@ func handle_index(w http.ResponseWriter, r *http.Request) { err = templates.ExecuteTemplate(w, "index", data) if err != nil { - w.Write([]byte("Error rendering template: " + err.Error())) + _, _ = w.Write([]byte("Error rendering template: " + err.Error())) return } } -- cgit v1.2.3