Skip to content

Commit f71ac73

Browse files
committed
Don't print the script
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 541dce1 commit f71ac73

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/teamloader/teamloader.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ func getToolsForAgent(ctx context.Context, a *latest.AgentConfig, parentDir stri
237237
t = append(t, builtin.NewShellTool())
238238

239239
case toolset.Type == "script":
240-
b, _ := json.Marshal(a)
241-
fmt.Println(string(b))
240+
_, _ = json.Marshal(a)
242241
if len(toolset.Shell) == 0 {
243242
return nil, fmt.Errorf("shell is required for script toolset")
244243
}

0 commit comments

Comments
 (0)