Skip to content

Commit 23bd23f

Browse files
committed
correctly set the default value when no tags are provided
1 parent e835326 commit 23bd23f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/coderd/provisionerdaemons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (api *API) provisionerDaemons(rw http.ResponseWriter, r *http.Request) {
9494
func provisionerTags(r *http.Request) ([]byte, error) {
9595
tags := r.URL.Query()["tags"]
9696
if len(tags) == 0 {
97-
return nil, nil
97+
return []byte("{}"), nil
9898
}
9999

100100
tagMap := map[string]string{}

0 commit comments

Comments
 (0)