From bfe31b75c16cfd7a0f344acd7dcbe9e630f6c495 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 23 May 2020 12:03:04 +0530 Subject: [PATCH] Fix incorrect param read bug in list deletion handler --- lists.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lists.go b/lists.go index d203fee..593e8ed 100644 --- a/lists.go +++ b/lists.go @@ -151,11 +151,6 @@ func handleDeleteLists(c echo.Context) error { ids pq.Int64Array ) - // Read the list IDs if they were sent in the body. - if err := c.Bind(&ids); err != nil { - return err - } - if id < 1 && len(ids) == 0 { return echo.NewHTTPError(http.StatusBadRequest, "Invalid ID.") }