Skip to content

Commit

Permalink
Fix my own mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael1993 committed Nov 16, 2023
1 parent 1cce91e commit a309d2e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public void reportingEntryPublished(TestIdentifier testIdentifier, ReportEntry e
var messages = entry.getKeyValuePairs();
var testId = testIdentifier.getUniqueId();
// because test IDs are unique, we can be sure that the report entries belong to the same test
testCases.putIfAbsent(testId, new IssueTestCaseBuilder(testId));
var testCaseBuilder = testCases.get(testId);
var testCaseBuilder = testCases.computeIfAbsent(testId, IssueTestCaseBuilder::new);

if (messages.containsKey(REPORT_ENTRY_KEY)) {
var issueId = messages.get(REPORT_ENTRY_KEY);
Expand Down

0 comments on commit a309d2e

Please sign in to comment.