fix wrong nil compare

This commit is contained in:
BuckarooBanzay 2022-01-17 09:45:32 +01:00
parent ae6bf7f585
commit 27f158a85e

View File

@ -26,7 +26,7 @@ func (api *Api) QueryMapobjects(resp http.ResponseWriter, req *http.Request) {
// apply defaults // apply defaults
limit := 1000 limit := 1000
if q.Limit != nil { if q.Limit == nil {
q.Limit = &limit q.Limit = &limit
} }