aboutsummaryrefslogtreecommitdiff
path: root/handle_index.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--handle_index.go4
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
}
}