Skip to content

Commit 1c08387

Browse files
authored
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 09a37d5#commitcomment-17927607.
1 parent 3e16770 commit 1c08387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/reactions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (s ReactionsService) CreatePullRequestCommentReaction(owner, repo string, i
258258
//
259259
// GitHub API docs: https://developer.github.com/v3/reaction/reactions/#delete-a-reaction-archive
260260
func (s *ReactionsService) DeleteReaction(id int) (*Response, error) {
261-
u := fmt.Sprintf("/reactions/%v", id)
261+
u := fmt.Sprintf("reactions/%v", id)
262262

263263
req, err := s.client.NewRequest("DELETE", u, nil)
264264
if err != nil {

0 commit comments

Comments
 (0)