Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-43507] Plugin requested formatting changes
  • Loading branch information
stephenc committed Jun 20, 2017
1 parent 075a1ba commit e8bbfc9
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -237,8 +237,7 @@ MercurialRevision create(@Nonnull SCMHead branch) {
}, new SCMSourceRequest.ProbeLambda<SCMHead, MercurialRevision>() {
@Override
public @Nonnull
SCMSourceCriteria.Probe create(@Nonnull SCMHead branch, @Nullable final
MercurialRevision revision) {
SCMSourceCriteria.Probe create(@Nonnull SCMHead branch, @Nullable final MercurialRevision revision) {
return new SCMProbeImpl(hg, cache, listener, revision, name);
}
}, new SCMSourceRequest.Witness() {
Expand Down Expand Up @@ -366,8 +365,8 @@ public ListBoxModel doFillCredentialsIdItems(@AncestorInPath SCMSourceOwner owne
.withAll(availableCredentials(owner, source));
}

private boolean hasAccessToCredentialsMetadata(SCMSourceOwner owner) {
if (owner == null) {
private boolean hasAccessToCredentialsMetadata(SCMSourceOwner owner){
if (owner == null){
return Jenkins.getActiveInstance().hasPermission(Jenkins.ADMINISTER);
}
return owner.hasPermission(Item.EXTENDED_READ);
Expand Down

0 comments on commit e8bbfc9

Please sign in to comment.