Inline toIterable

This commit is contained in:
Liam Newman
2020-01-10 13:27:55 -08:00
parent 5a6a29cbb5
commit a3ba07d45f
27 changed files with 147 additions and 127 deletions

View File

@@ -442,10 +442,9 @@ public class GHCommit {
*/
public PagedIterable<GHCommitComment> listComments() {
return owner.root.createRequest()
.asPagedIterable(
String.format("/repos/%s/%s/commits/%s/comments", owner.getOwnerName(), owner.getName(), sha),
GHCommitComment[].class,
item -> item.wrap(owner));
.withUrlPath(
String.format("/repos/%s/%s/commits/%s/comments", owner.getOwnerName(), owner.getName(), sha))
.toIterable(GHCommitComment[].class, item -> item.wrap(owner));
}
/**