From f0362ede80ad48d08b9601c0c8be910859c4decc Mon Sep 17 00:00:00 2001 From: Pratik Gaikwad Date: Thu, 28 Sep 2023 20:06:46 -0700 Subject: [PATCH] fix: correction in rest end point path library adds `/` at the beginning of the path by default, no need to add it manually --- merge_requests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merge_requests.go b/merge_requests.go index 1df07225f..a3dd274be 100644 --- a/merge_requests.go +++ b/merge_requests.go @@ -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 {