Skip to content

Commit

Permalink
fix: correction in rest end point path
Browse files Browse the repository at this point in the history
library adds `/` at the beginning of the path by default, no need to add it manually
  • Loading branch information
GaikwadPratik committed Sep 29, 2023
1 parent 7d2bd21 commit f0362ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merge_requests.go
Expand Up @@ -510,7 +510,7 @@ func (s *MergeRequestsService) ListMergeRequesDiffs(pid interface{}, mergeReques
return nil, nil, err
}

u := fmt.Sprintf("/projects/%s/merge_requests/%d/diffs", PathEscape(project), mergeRequest)
u := fmt.Sprintf("projects/%s/merge_requests/%d/diffs", PathEscape(project), mergeRequest)

req, err := s.client.NewRequest(http.MethodGet, u, opt, options)
if err != nil {
Expand Down

0 comments on commit f0362ed

Please sign in to comment.