Skip to content

Commit ff84210

Browse files
committed
non-nil default
1 parent 4fec855 commit ff84210

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/provisionerdaemons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (api *API) provisionerDaemons(rw http.ResponseWriter, r *http.Request) {
4444
p := httpapi.NewQueryParamParser()
4545
limit := p.PositiveInt32(qp, 50, "limit")
4646
ids := p.UUIDs(qp, nil, "ids")
47-
tags := p.JSONStringMap(qp, nil, "tags")
47+
tags := p.JSONStringMap(qp, database.StringMap{}, "tags")
4848
p.ErrorExcessParams(qp)
4949
if len(p.Errors) > 0 {
5050
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{

coderd/provisionerjobs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (api *API) handleAuthAndFetchProvisionerJobs(rw http.ResponseWriter, r *htt
108108
if ids == nil {
109109
ids = p.UUIDs(qp, nil, "ids")
110110
}
111-
tags := p.JSONStringMap(qp, nil, "tags")
111+
tags := p.JSONStringMap(qp, database.StringMap{}, "tags")
112112
p.ErrorExcessParams(qp)
113113
if len(p.Errors) > 0 {
114114
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{

0 commit comments

Comments
 (0)