diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 13:04:15 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 13:04:15 +0800 |
commit | 80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5 (patch) | |
tree | 80b11c951bc02daa4c6d02cf78e02e118c9fce88 /handle_index.go | |
parent | index: List categories (diff) | |
download | forge-80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5.tar.gz forge-80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5.tar.zst forge-80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5.zip |
*.go: Linting
Diffstat (limited to 'handle_index.go')
-rw-r--r-- | handle_index.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } } |