We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba4791b commit 6b5ead1Copy full SHA for 6b5ead1
pkg/modgearman/internal_check_prometheus.go
@@ -13,7 +13,7 @@ func (chk *internalCheckPrometheus) Check(_ context.Context, output *bytes.Buffe
13
// args passed to this function does not have the executable as first element.
14
// The cli parser library of check_prometheus however expects a program name
15
// Just like a normal argc , argv invocation
16
- argsForCheck := make([]string, 0)
+ argsForCheck := make([]string, 1+len(args))
17
argsForCheck = append(argsForCheck, "check_prometheus")
18
argsForCheck = append(argsForCheck, args...)
19
0 commit comments