Skip to content

Commit

Permalink
apply spotless suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Zenteno committed Oct 11, 2023
1 parent 4a4ff2f commit 809c84b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public void doFilter(ServletRequest request, ServletResponse res, FilterChain ch
String uri = getPathInfo(req);
if (uriPattern != null && uriPattern.matcher(uri).matches()) {
User user = User.current();
String username = user != null ? (configuration.shouldDisplayUserName()? user.getDisplayName(): user.getId()) : "NA";
String username = user != null

Check warning on line 86 in src/main/java/hudson/plugins/audit_trail/AuditTrailFilter.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 86 is only partially covered, one branch is missing
? (configuration.shouldDisplayUserName() ? user.getDisplayName() : user.getId())

Check warning on line 87 in src/main/java/hudson/plugins/audit_trail/AuditTrailFilter.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 87 is only partially covered, 2 branches are missing
: "NA";
String remoteIP = req.getRemoteAddr();
String extra = "";
// For queue items, show what task is in the queue:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ public boolean getLogCredentialsUsage() {
public boolean shouldLogCredentialsUsage() {
return logCredentialsUsage;
}

public boolean shouldDisplayUserName() {
return displayUserName;
}

public boolean getDisplayUserName() {
return shouldDisplayUserName();
}
Expand Down

0 comments on commit 809c84b

Please sign in to comment.