Skip to content

Commit a5c696b

Browse files
committed
Fix warning.
1 parent 0400342 commit a5c696b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/io/jenkins/plugins/analysis/core/tokens/IssuesSizeTokenMacro.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ public String evaluate(final Run<?, ?> run, final FilePath workspace, final Task
6161

6262
private String extractSelectedTotals(final Run<?, ?> run) {
6363
return String.valueOf(run.getActions(ResultAction.class).stream()
64-
.filter(createToolFilter(run))
64+
.filter(createToolFilter())
6565
.map(ResultAction::getResult)
6666
.map(AnalysisResult::getTotals)
6767
.mapToInt(totals -> type.getSizeGetter().apply(totals))
6868
.reduce(Integer::sum)
6969
.orElse(0));
7070
}
7171

72-
private Predicate<ResultAction> createToolFilter(final Run<?, ?> run) {
72+
private Predicate<ResultAction> createToolFilter() {
7373
if (StringUtils.isBlank(tool)) {
7474
return jobAction -> true;
7575
}

0 commit comments

Comments
 (0)