Chore: linter complains

This commit is contained in:
Grail Finder
2025-05-22 07:49:07 +03:00
parent 6b750cd34b
commit 31f721cd43
6 changed files with 56 additions and 20 deletions

View File

@ -30,7 +30,9 @@ func init() {
}
func HandlePing(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("pong"))
if _, err := w.Write([]byte("pong")); err != nil {
log.Error("failed to write ping response", "error", err)
}
}
func HandleHome(w http.ResponseWriter, r *http.Request) {