Skip to content

Commit

Permalink
chore: slice replace loop
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Jul 10, 2023
1 parent c4095cb commit 253feb2
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
Expand Up @@ -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()
}

Expand Down

0 comments on commit 253feb2

Please sign in to comment.