Update indent rules

Remove indents in the server response configuration and change spaces to tabs in the "export" command output.
This commit is contained in:
Puqns67 2024-11-23 18:37:26 +08:00
parent ff33c5cba3
commit 9a11d69d63
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ func export(profileName string) error {
return err
}
encoder := json.NewEncoderContext(globalCtx, os.Stdout)
encoder.SetIndent("", " ")
encoder.SetIndent("", " ")
err = encoder.Encode(boxOptions)
if err != nil {
return E.Cause(err, "encode config")

View File

@ -84,7 +84,7 @@ func (s *Server) render(writer http.ResponseWriter, request *http.Request) {
}
var buffer bytes.Buffer
encoder := json.NewEncoderContext(s.ctx, &buffer)
encoder.SetIndent("", " ")
encoder.SetIndent("", "")
err = encoder.Encode(&options)
if err != nil {
s.logger.Error(E.Cause(err, "marshal options"))