From b91c169b16b6f727f17e86dd829e38e12f8756d8 Mon Sep 17 00:00:00 2001 From: maru Date: Fri, 10 May 2024 15:33:37 -0400 Subject: [PATCH] endpoints.go consistency --- api/endpoints.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/api/endpoints.go b/api/endpoints.go index a24da22..9087d67 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -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) {