Skip to content

Commit

Permalink
Fix compile problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX committed Nov 10, 2024
1 parent 5a82ee9 commit 868dd31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Runner.Worker/ExecutionContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -676,17 +676,17 @@ public void AddIssue(Issue issue, ExecutionContextLogOptions logOptions)
{
case IssueType.Error:
wellKnownTag = WellKnownTags.Error;
previousCountForIssueType = _record.ErrorCount;
previousCountForIssueType = _record.ErrorCount ??= 0;
incrementIssueTypeCount = () => { _record.ErrorCount++; };
break;
case IssueType.Warning:
wellKnownTag = WellKnownTags.Warning;
previousCountForIssueType = _record.WarningCount;
previousCountForIssueType = _record.WarningCount ??= 0;
incrementIssueTypeCount = () => { _record.WarningCount++; };
break;
case IssueType.Notice:
wellKnownTag = WellKnownTags.Notice;
previousCountForIssueType = _record.NoticeCount;
previousCountForIssueType = _record.NoticeCount ??= 0;
incrementIssueTypeCount = () => { _record.NoticeCount++; };
break;
}
Expand Down

0 comments on commit 868dd31

Please sign in to comment.