forked from mirror/serenity
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:
parent
ff33c5cba3
commit
9a11d69d63
@ -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")
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user