Browse Source

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 09a37d57ac (commitcomment-17927607).
Dmitri Shuralyov 10 years ago
committed by GitHub
parent
commit
1c08387e4c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      github/reactions.go

+ 1
- 1
github/reactions.go View File

@ -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 {


Loading…
Cancel
Save