From 1c08387e4c91df86627d0853f155a4efc8cb8a2d Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Sun, 19 Jun 2016 15:11:36 -0700 Subject: [PATCH] Remove leading slash from ReactionsService.DeleteReaction URL. It's harmless, but inconsistent. All other such URLs in this package do not use a leading slash. See https://github.com/google/go-github/commit/09a37d57ac99a8938444e44375db8660c2184696#commitcomment-17927607. --- github/reactions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/reactions.go b/github/reactions.go index 1dc4cb5..68a16af 100644 --- a/github/reactions.go +++ b/github/reactions.go @@ -258,7 +258,7 @@ func (s ReactionsService) CreatePullRequestCommentReaction(owner, repo string, i // // GitHub API docs: https://developer.github.com/v3/reaction/reactions/#delete-a-reaction-archive func (s *ReactionsService) DeleteReaction(id int) (*Response, error) { - u := fmt.Sprintf("/reactions/%v", id) + u := fmt.Sprintf("reactions/%v", id) req, err := s.client.NewRequest("DELETE", u, nil) if err != nil {