From 0957102169610f86f82d00427d0ea24ed0409509 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 27 Jun 2022 01:13:25 +0400 Subject: [PATCH] Removed reduntant cast to captcha.ID. --- internal/handlers/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index b5db72f..3e8a3f4 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -47,7 +47,7 @@ func (h *CaptchaHandlers) Solve(w http.ResponseWriter, r *http.Request) { captchaID := pcaptcha.ID(server.GetURLParam(r, "captcha")) answer := pcaptcha.Answer(r.FormValue("answer")) - ok, err := captcha.Solve(pcaptcha.ID(captchaID), answer) + ok, err := captcha.Solve(captchaID, answer) if err != nil { w.WriteHeader(http.StatusNotFound) return