Skip to content

Commit 29e4491

Browse files
committed
Skip author resolve if already present
1 parent d2c9851 commit 29e4491

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,9 @@ public List<GHCommit> getParents() throws IOException {
464464
* the io exception
465465
*/
466466
public GHUser getAuthor() throws IOException {
467+
if (author != null) {
468+
return resolveUser(author);
469+
}
467470
populate();
468471
return resolveUser(author);
469472
}

0 commit comments

Comments
 (0)