Skip to content
Permalink
Browse files

[JENKINS-43507] Plugin requested formatting changes

  • Loading branch information...
stephenc committed Jun 20, 2017
1 parent 075a1ba commit e8bbfc981e21f0f4176b1ccd2da4954e822388ed
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/main/java/hudson/plugins/mercurial/MercurialSCMSource.java
@@ -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() {
@@ -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);

0 comments on commit e8bbfc9

Please sign in to comment.
You can’t perform that action at this time.