fix: address /home/stevan/go/bin/golangci-lint run ./... issues

This commit is contained in:
Stevan Freeborn
2026-08-15 22:09:59 -05:00
parent 9eca3c71e2
commit 19f5aca484
3 changed files with 14 additions and 5 deletions
+3 -3
View File
@@ -23,14 +23,14 @@ func (s *Server) HandleIndex(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", "text/html; charset=utf-8")
w.WriteHeader(http.StatusOK)
w.Write(s.indexHTML)
_, _ = w.Write(s.indexHTML)
}
// HandleHealthChecks reports that the service is up.
func (s *Server) HandleHealthChecks(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", "text/plain; charset=utf-8")
w.WriteHeader(http.StatusOK)
w.Write([]byte("OK"))
_, _ = w.Write([]byte("OK"))
}
// HandleReset clears the file server hit counter and deletes all users. It is
@@ -50,7 +50,7 @@ func (s *Server) HandleReset(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", "text/plain; charset=utf-8")
w.WriteHeader(http.StatusOK)
w.Write([]byte("OK"))
_, _ = w.Write([]byte("OK"))
}
// HandleMetrics renders the admin page showing how many times the file server