From 92a6b4b1d35a551c6d7a111f038880820c378ddc Mon Sep 17 00:00:00 2001 From: grey Date: Thu, 13 Oct 2022 18:01:06 +0200 Subject: [PATCH] fixed small thing --- webRoutes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/webRoutes.go b/webRoutes.go index a788d27..228d311 100644 --- a/webRoutes.go +++ b/webRoutes.go @@ -311,6 +311,7 @@ func handleRemaining(w http.ResponseWriter, r *http.Request) { var cnt, err = strconv.Atoi(r.URL.Query().Get("id")) // Retrieve the id, first convert it to an int if err != nil { fmt.Fprintf(w, "{\"status\":\"fail\", \"reason\":\"invalid id\"}") + return } fmt.Println(cnt) plyB := playbacks[cnt]