Skip to content

Commit f0362ed

Browse files
committed
fix: correction in rest end point path
library adds `/` at the beginning of the path by default, no need to add it manually
1 parent 7d2bd21 commit f0362ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge_requests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ func (s *MergeRequestsService) ListMergeRequesDiffs(pid interface{}, mergeReques
510510
return nil, nil, err
511511
}
512512

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

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

0 commit comments

Comments
 (0)