Skip to content

Commit

Permalink
[JENKINS-72030] getEnableAvater -> isEnableAvatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Dohbedoh committed Nov 7, 2023
1 parent ad94288 commit 8cc08ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public void setCredentialsId(@CheckForNull String credentialsId) {
*/
@NonNull
@SuppressWarnings("unused") // stapler
public boolean getEnableAvatar() {
public boolean isEnableAvatar() {
return Boolean.TRUE.equals(enableAvatar);
}

Expand Down Expand Up @@ -1561,7 +1561,7 @@ public List<Action> retrieveActions(
Connector.lookupScanCredentials((Item) owner, getApiUri(), credentialsId, repoOwner);
GitHub hub = Connector.connect(getApiUri(), credentials);
Connector.configureLocalRateLimitChecker(listener, hub);
boolean privateMode = !getEnableAvatar() || determinePrivateMode(apiUri);
boolean privateMode = !isEnableAvatar() || determinePrivateMode(apiUri);

Check warning on line 1564 in src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 1564 is only partially covered, one branch is missing
try {
GHUser u = hub.getUser(getRepoOwner());
String objectUrl = u.getHtmlUrl() == null ? null : u.getHtmlUrl().toExternalForm();
Expand Down

0 comments on commit 8cc08ab

Please sign in to comment.