From 03fc2f5da49c38e9aba24ed9d55e0724e70ebe86 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 25 Apr 2023 13:02:16 -0400 Subject: [PATCH] Folder delete: Fix panic when params are set (#146) --- folder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folder.go b/folder.go index 50fe8558..d9b223ae 100644 --- a/folder.go +++ b/folder.go @@ -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))