Skip to content

Commit

Permalink
Folder delete: Fix panic when params are set (grafana#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne authored and flkhndlr committed May 9, 2023
1 parent 65edf1b commit fcca53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folder.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func ForceDeleteFolderRules() url.Values {

// DeleteFolder deletes the folder whose ID it's passed.
func (c *Client) DeleteFolder(id string, optionalQueryParams ...url.Values) error {
var query url.Values
query := url.Values{}
for _, param := range optionalQueryParams {
for paramKey := range param {
query.Set(paramKey, param.Get(paramKey))
Expand Down

0 comments on commit fcca53a

Please sign in to comment.