Skip to content

Commit

Permalink
chore: quick fix for consistnacy
Browse files Browse the repository at this point in the history
  • Loading branch information
robgordon89 committed Nov 9, 2023
1 parent fc33078 commit b93b84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subscribers.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ func (s *SubscriberService) Upsert(ctx context.Context, subscriber *Subscriber)
}

func (s *SubscriberService) Update(ctx context.Context, subscriber *Subscriber) (*rootSubscriber, *Response, error) {
endpoint := subscriberEndpoint + "/" + subscriber.ID
path := fmt.Sprintf("%s/%s", subscriberEndpoint, subscriber.ID)

req, err := s.client.newRequest(http.MethodPut, endpoint, subscriber)
req, err := s.client.newRequest(http.MethodPut, path, subscriber)
if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit b93b84f

Please sign in to comment.