Skip to content

Commit

Permalink
Clear SonarCloud issue S2076
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Sep 28, 2024
1 parent ad897a9 commit 0967f5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions League/Controllers/Match.cs
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ private async Task<EnterResultViewModel> GetEnterResultViewModel(MatchEntity mat
: throw new InvalidOperationException($"{nameof(EnterResultViewModel)} could not be initiated");
}

#pragma warning disable S2083 // reason: False positive ReportSheet cannot be injected with malicious code
#pragma warning disable S2076 // reason: False positive ReportSheet cannot be injected with malicious code
/// <summary>
/// Gets a match report sheet suitable for a printout,
/// if the match has not already been played.
Expand Down Expand Up @@ -743,8 +743,8 @@ public async Task<IActionResult> ReportSheet(long id, [FromServices] ReportSheet
Response.Clear();
return View(ViewNames.Match.ReportSheet, model);
}
#pragma warning restore S2083 // reason: False positive ReportSheet cannot be injected with malicious code
#pragma warning restore S2076 // reason: False positive ReportSheet cannot be injected with malicious code

private void SendFixtureNotification(long matchId)
{
var smt = _sendMailTask.CreateNewInstance();
Expand Down

0 comments on commit 0967f5e

Please sign in to comment.