Removed reduntant cast to captcha.ID.

This commit is contained in:
Alexander Andreev 2022-06-27 01:13:25 +04:00
parent c92d02f4e4
commit 0957102169
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
1 changed files with 1 additions and 1 deletions

View File

@ -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