Skip to content

Commit e8e768e

Browse files
authored
remove marshal indent (#1240)
1 parent be2e759 commit e8e768e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/src/mcp.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func mcpMain(args []string) error {
8585
return err
8686
}
8787

88-
output, err := json.MarshalIndent(result, "", " ")
88+
output, err := json.Marshal(result)
8989
if err != nil {
9090
return err
9191
}
@@ -94,11 +94,11 @@ func mcpMain(args []string) error {
9494
}
9595

9696
func printSchemas(tool *mcp.ToolDef) error {
97-
input, err := json.MarshalIndent(tool.InputSchema, "", " ")
97+
input, err := json.Marshal(tool.InputSchema)
9898
if err != nil {
9999
return err
100100
}
101-
output, err := json.MarshalIndent(tool.OutputSchema, "", " ")
101+
output, err := json.Marshal(tool.OutputSchema)
102102
if err != nil {
103103
return err
104104
}

0 commit comments

Comments
 (0)