From f2b369b2c6eb237fed6fa6178c24a723f7e227cd Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Thu, 29 Dec 2022 14:54:05 -0500 Subject: [PATCH] fix: remove length requirement --- src/routes/question.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/routes/question.go b/src/routes/question.go index 9f9a034..e07331f 100644 --- a/src/routes/question.go +++ b/src/routes/question.go @@ -25,15 +25,6 @@ func ViewQuestion(c *gin.Context) { client := resty.New() questionId := c.Param("id") - if len(questionId) < 5 { - c.HTML(400, "home.html", gin.H{ - "errorMessage": "Invalid question ID", - "theme": c.MustGet("theme").(string), - "version": config.Version, - }) - return - } - if _, err := strconv.Atoi(questionId); err != nil { c.HTML(400, "home.html", gin.H{ "errorMessage": "Invalid question ID",