Skip to content

Commit

Permalink
extract variable to shorten next line
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Feb 13, 2022
1 parent e40c872 commit 25342bd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ private void updatePR(GHPullRequest ghpr, GHIssueComment comment, boolean isWebh

// the author of the PR could have been whitelisted since its creation
GHUser pullRequestAuthor = getPullRequestAuthor();
if (!accepted && !helper.checkBlackListCommitAuthor(pullRequestAuthor.getLogin()) && helper.isWhitelisted(pullRequestAuthor)) {
String pullRequestAuthorName = pullRequestAuthor.getLogin();
if (!accepted && !helper.checkBlackListCommitAuthor(pullRequestAuthorName) && helper.isWhitelisted(pullRequestAuthor)) {
LOGGER.log(Level.INFO, "Pull request #{0}'s author has been whitelisted", new Object[] {id});
setAccepted(false);
}
Expand Down

0 comments on commit 25342bd

Please sign in to comment.