Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Folder delete: Fix panic when params are set (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne authored Apr 25, 2023
1 parent 92f4ca9 commit 03fc2f5
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 03fc2f5

Please sign in to comment.