Skip to content

Commit f6c70d7

Browse files
committed
Name change
1 parent 2b4b7a2 commit f6c70d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/kohsuke/github/GHCommitFileIterable.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)