Skip to content

Commit

Permalink
Remove unused diagnostic string
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench committed Jan 21, 2025
1 parent 855f2e9 commit 132b8bd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/command/junit/junit.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,10 @@ func junitXMLTestReport(suite *moduletest.Suite, suiteRunnerStopped bool, source
Body: body,
}
case moduletest.Fail:
var diagsStr strings.Builder
var failedAssertion tfdiags.Diagnostic
for _, diag := range run.Diagnostics {
// Find the diag resulting from a failed assertion
if diag.Description().Summary == failedTestSummary {
diagsStr.WriteString(format.DiagnosticPlain(diag, sources, 80))
failedAssertion = diag
break
}
Expand Down

0 comments on commit 132b8bd

Please sign in to comment.