endpoints.go consistency

This commit is contained in:
maru committed 2024-05-10 15:33:37 -04:00
1 parent 3ed5f41d58
commit b91c169b16
1 file changed
+3 -5
+3 -5
View File
@@ -339,16 +339,14 @@ func handleDailySeed(w http.ResponseWriter, r *http.Request) {
httpError(w, r, err, http.StatusInternalServerError)
return
}
bytes, err := base64.StdEncoding.DecodeString(seed)
if err != nil {
httpError(w, r, err, http.StatusInternalServerError)
return
}
_, err = w.Write(bytes)
if err != nil {
httpError(w, r, err, http.StatusInternalServerError)
return
}
w.Write(bytes)
}
func handleDailyRankings(w http.ResponseWriter, r *http.Request) {