Skip to content

Commit

Permalink
remove unused binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopertz committed Sep 9, 2024
1 parent 6d28a06 commit a2fbcf5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/api/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ func (app *application) registerUserHandler(c echo.Context) error {
inp.ChesscomUsername = c.FormValue("chesscom_username")
inp.PhoneNumber = c.FormValue("phone_number")

if err := c.Bind(&inp); err != nil {
return c.JSON(http.StatusBadRequest, map[string]string{"error": err.Error()})
}

if err := app.validator.Struct(inp); err != nil {
return c.JSON(http.StatusBadRequest, map[string]string{"error": err.Error()})
Expand Down

0 comments on commit a2fbcf5

Please sign in to comment.