Skip to content

Commit c796dcf

Browse files
committed
junit: Remove unused indent parameter from formatOutput function
1 parent 917d9f7 commit c796dcf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

junit/junit.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func CreateFromReport(report gtr.Report, hostname string) Testsuites {
149149
}
150150

151151
if len(pkg.Output) > 0 {
152-
suite.SystemOut = &Output{Data: formatOutput(pkg.Output, 0)}
152+
suite.SystemOut = &Output{Data: formatOutput(pkg.Output)}
153153
}
154154

155155
if pkg.Coverage > 0 {
@@ -210,20 +210,20 @@ func createTestcaseForTest(pkgName string, test gtr.Test) Testcase {
210210
if test.Result == gtr.Fail {
211211
tc.Failure = &Result{
212212
Message: "Failed",
213-
Data: formatOutput(test.Output, test.Level),
213+
Data: formatOutput(test.Output),
214214
}
215215
} else if test.Result == gtr.Skip {
216216
tc.Skipped = &Result{
217217
Message: "Skipped",
218-
Data: formatOutput(test.Output, test.Level),
218+
Data: formatOutput(test.Output),
219219
}
220220
} else if test.Result == gtr.Unknown {
221221
tc.Error = &Result{
222222
Message: "No test result found",
223-
Data: formatOutput(test.Output, test.Level),
223+
Data: formatOutput(test.Output),
224224
}
225225
} else if len(test.Output) > 0 {
226-
tc.SystemOut = &Output{Data: formatOutput(test.Output, test.Level)}
226+
tc.SystemOut = &Output{Data: formatOutput(test.Output)}
227227
}
228228
return tc
229229
}
@@ -235,6 +235,6 @@ func formatDuration(d time.Duration) string {
235235
}
236236

237237
// formatOutput combines the lines from the given output into a single string.
238-
func formatOutput(output []string, indent int) string {
238+
func formatOutput(output []string) string {
239239
return strings.Join(output, "\n")
240240
}

0 commit comments

Comments
 (0)