From f7cac820fa84b4d815fd435e598503c95f349504 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 15 Jul 2024 09:09:03 +0800 Subject: [PATCH] chore: slice replace loop (#1211) * chore: slice replace loop * Trigger GitHub Actions --------- Co-authored-by: Lorenzo Aiello --- reminders.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/reminders.go b/reminders.go index 53d67c03c..5543a1577 100644 --- a/reminders.go +++ b/reminders.go @@ -41,10 +41,7 @@ func (api *Client) doReminders(ctx context.Context, path string, values url.Valu // create an array of pointers to reminders var reminders = make([]*Reminder, 0, len(response.Reminders)) - for _, reminder := range response.Reminders { - reminders = append(reminders, reminder) - } - + reminders = append(reminders, response.Reminders...) return reminders, response.Err() }