From 27f158a85eb9180fe1dc2aaef9b59c0e1a859431 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Mon, 17 Jan 2022 09:45:32 +0100 Subject: [PATCH] fix wrong nil compare --- web/mapobjects.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/mapobjects.go b/web/mapobjects.go index ec56b46..ac7ece7 100644 --- a/web/mapobjects.go +++ b/web/mapobjects.go @@ -26,7 +26,7 @@ func (api *Api) QueryMapobjects(resp http.ResponseWriter, req *http.Request) { // apply defaults limit := 1000 - if q.Limit != nil { + if q.Limit == nil { q.Limit = &limit }