Skip to content

Commit

Permalink
chore: slice replace loop (#1211)
Browse files Browse the repository at this point in the history
* chore: slice replace loop

* Trigger GitHub Actions

---------

Co-authored-by: Lorenzo Aiello <lorenzo.aiello@flightsimcorp.com>
  • Loading branch information
testwill and lorenzoaiello authored Jul 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 006a688 commit f7cac82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions reminders.go
Original file line number Diff line number Diff line change
@@ -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()
}

0 comments on commit f7cac82

Please sign in to comment.