fix wrong nil compare
This commit is contained in:
parent
ae6bf7f585
commit
27f158a85e
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user