File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ class GHCommitFileIterable extends PagedIterable<GHCommit.File> {
2020 private static PaginatedEndpoint <GHCommitFilesPage , File > createEndpoint (GHRepository owner ,
2121 String sha ,
2222 GHCommit .File [] files ) {
23- PaginatedEndpoint <GHCommitFilesPage , File > iterable ;
23+ PaginatedEndpoint <GHCommitFilesPage , File > endpoint ;
2424 if (files != null && files .length < GH_FILE_LIMIT_PER_COMMIT_PAGE ) {
25- // create a page iterator that only provides one page
26- iterable = PaginatedEndpoint .fromSinglePage (new GHCommitFilesPage (files ), GHCommit .File .class );
25+ // create an endpoint that only reads one already loaded page
26+ endpoint = PaginatedEndpoint .fromSinglePage (new GHCommitFilesPage (files ), GHCommit .File .class );
2727 } else {
28- iterable = owner .root ()
28+ endpoint = owner .root ()
2929 .createRequest ()
3030 .withUrlPath (owner .getApiTailUrl ("commits/" + sha ))
3131 .toPaginatedEndpoint (GHCommitFilesPage .class , GHCommit .File .class , null );
3232 }
33- return iterable ;
33+ return endpoint ;
3434 }
3535
3636 /**
You can’t perform that action at this time.
0 commit comments