Skip to content

Commit

Permalink
#196: url->urlPrefix
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Forster <me@brandonforster.com>
  • Loading branch information
brandonforster committed Jan 21, 2020
1 parent 19cdcb0 commit 69f0ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/notifications/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ func NewNotificationsClient(params types.EndpointParams, m interfaces.Endpointer
}

func (nc *notificationsRestClient) SendNotification(n Notification, ctx context.Context) error {
url, err := nc.urlClient.Prefix()
urlPrefix, err := nc.urlClient.Prefix()
if err != nil {
return err
}

_, err = clients.PostJsonRequest(url, n, ctx)
_, err = clients.PostJsonRequest(urlPrefix, n, ctx)
return err
}

0 comments on commit 69f0ac3

Please sign in to comment.