util: use marshal instead of marshal indent

This commit is contained in:
c9s 2022-07-23 12:16:06 +08:00
parent 0a08cc21df
commit 4345cef8d7
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -6,7 +6,7 @@ import (
) )
func WriteJsonFile(p string, obj interface{}) error { func WriteJsonFile(p string, obj interface{}) error {
out, err := json.MarshalIndent(obj, "", " ") out, err := json.Marshal(obj)
if err != nil { if err != nil {
return err return err
} }