Skip to content

Commit 053813a

Browse files
committed
Fixed getSnippets() so it properly works with all project specifiers.
1 parent f5dd485 commit 053813a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gitlab4j/api/ProjectApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ public List<Snippet> getSnippets(Object projectIdOrPath, int page, int perPage)
19171917
* @throws GitLabApiException if any exception occurs
19181918
*/
19191919
public Pager<Snippet> getSnippets(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
1920-
return (new Pager<Snippet>(this, Snippet.class, itemsPerPage, null, "projects", projectIdOrPath, "snippets"));
1920+
return (new Pager<Snippet>(this, Snippet.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "snippets"));
19211921
}
19221922

19231923
/**

0 commit comments

Comments
 (0)