From 9d08139f4363d3503398002bc82cb3746e3438cf Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 23 Sep 2018 21:02:26 -0700 Subject: Improve request package and add more unit tests --- ui/entry_unread.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ui/entry_unread.go') diff --git a/ui/entry_unread.go b/ui/entry_unread.go index 30a6d34..4ef5731 100644 --- a/ui/entry_unread.go +++ b/ui/entry_unread.go @@ -25,12 +25,7 @@ func (c *Controller) ShowUnreadEntry(w http.ResponseWriter, r *http.Request) { return } - entryID, err := request.IntParam(r, "entryID") - if err != nil { - html.BadRequest(w, err) - return - } - + entryID := request.RouteInt64Param(r, "entryID") builder := c.store.NewEntryQueryBuilder(user.ID) builder.WithEntryID(entryID) builder.WithoutStatus(model.EntryStatusRemoved) -- cgit v1.2.3