Skip to content

Commit

Permalink
don't initialize outputMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-pawel committed Oct 14, 2024
1 parent c712247 commit c03d28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/processors/starlark/starlark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3285,7 +3285,7 @@ func TestAllScriptTestData(t *testing.T) {
lines := strings.Split(string(b), "\n")
inputMetrics := parseMetricsFrom(t, lines, "Example Input:")
expectedErrorStr := parseErrorMessage(t, lines, "Example Output Error:")
outputMetrics := make([]telegraf.Metric, 0)
var outputMetrics []telegraf.Metric
if expectedErrorStr == "" {
outputMetrics = parseMetricsFrom(t, lines, "Example Output:")
}
Expand Down

0 comments on commit c03d28d

Please sign in to comment.