We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22f8914 + 94dc3f1 commit 3e9ccbeCopy full SHA for 3e9ccbe
1 file changed
pkg/tools/builtin/script_shell.go
@@ -37,7 +37,7 @@ func NewScriptShellTool(shellTools map[string]latest.ScriptShellToolConfig, env
37
func validateConfig(toolName string, tool latest.ScriptShellToolConfig) error {
38
// If no required array was set, all arguments are required
39
if tool.Required == nil {
40
- tool.Required = make([]string, len(tool.Args))
+ tool.Required = make([]string, 0, len(tool.Args))
41
for argName := range tool.Args {
42
tool.Required = append(tool.Required, argName)
43
}
0 commit comments