Skip to content

Commit

Permalink
[JENKINS-73172] Make method private
Browse files Browse the repository at this point in the history
Co-authored-by: Jérôme Pochat <[email protected]>
  • Loading branch information
Dohbedoh and jeromepochat authored Oct 16, 2024
1 parent 5480035 commit a54552c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public GitHubSCMNavigator(String apiUri, String repoOwner, String scanCredential

@CheckForNull
@Restricted(NoExternalUse.class)
public StandardCredentials getCredentials(@CheckForNull Item context, boolean forceRefresh) {
private StandardCredentials getCredentials(@CheckForNull Item context, boolean forceRefresh) {
if (credentials == null || forceRefresh) {

Check warning on line 261 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 261 is only partially covered, 3 branches are missing
credentials = Connector.lookupScanCredentials(context, getApiUri(), getCredentialsId(), getRepoOwner());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public GitHubSCMSource(

@CheckForNull
@Restricted(NoExternalUse.class)
public StandardCredentials getCredentials(@CheckForNull Item context, boolean forceRefresh) {
private StandardCredentials getCredentials(@CheckForNull Item context, boolean forceRefresh) {
if (credentials == null || forceRefresh) {

Check warning on line 385 in src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 385 is only partially covered, one branch is missing
credentials = Connector.lookupScanCredentials(context, getApiUri(), getCredentialsId(), getRepoOwner());
}
Expand Down

0 comments on commit a54552c

Please sign in to comment.