We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78bed84 commit d2d2a89Copy full SHA for d2d2a89
1 file changed
hooks/jsonnet-fmt-hook/main.go
@@ -171,7 +171,7 @@ func diffJsonnetFmt(f string) (*Diff, error) {
171
func execJsonnetFmt(f string, opts []string) error {
172
var stdout, stderr bytes.Buffer
173
174
- args := []string{}
+ args := make([]string, 0, len(opts)+2)
175
args = append(args, opts...)
176
args = append(args, "--")
177
args = append(args, f)
0 commit comments