From 8aaf9b4adf89ac71e98e8c42f90d4d93de4a66bd Mon Sep 17 00:00:00 2001 From: "Bora M. Alper" Date: Tue, 1 Jan 2019 18:23:57 +0300 Subject: [PATCH] fixed search error (#183) --- cmd/magneticow/api.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/magneticow/api.go b/cmd/magneticow/api.go index c89ee5e..69fd709 100644 --- a/cmd/magneticow/api.go +++ b/cmd/magneticow/api.go @@ -48,11 +48,6 @@ func apiTorrentsHandler(w http.ResponseWriter, r *http.Request) { return } - if tq.LastID == nil { - respondError(w, 400, "lastID has to be greater than or equal to zero") - return - } - if tq.Ascending == nil { tq.Ascending = new(bool) *tq.Ascending = true