Skip to content

Commit 6b5ead1

Browse files
Ahmet OzturkAhmet Ozturk
authored andcommitted
more linter fixes
1 parent ba4791b commit 6b5ead1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/modgearman/internal_check_prometheus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func (chk *internalCheckPrometheus) Check(_ context.Context, output *bytes.Buffe
1313
// args passed to this function does not have the executable as first element.
1414
// The cli parser library of check_prometheus however expects a program name
1515
// Just like a normal argc , argv invocation
16-
argsForCheck := make([]string, 0)
16+
argsForCheck := make([]string, 1+len(args))
1717
argsForCheck = append(argsForCheck, "check_prometheus")
1818
argsForCheck = append(argsForCheck, args...)
1919

0 commit comments

Comments
 (0)