1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 13:30:26 +00:00

Indent marshalled JSON

It is a quickfix requested by Dan
This commit is contained in:
Timur Ismagilov 2021-05-27 17:04:10 +05:00
parent 11af79d300
commit fcc6ec1549

View File

@ -101,7 +101,7 @@ func dumpRegistrationCredentials() error {
tmp = append(tmp, copiedUser) tmp = append(tmp, copiedUser)
} }
blob, err := json.Marshal(tmp) blob, err := json.MarshalIndent(tmp, "", "\t")
if err != nil { if err != nil {
log.Println(err) log.Println(err)
return err return err
@ -124,7 +124,7 @@ func dumpTokens() {
return true return true
}) })
blob, err := json.Marshal(tmp) blob, err := json.MarshalIndent(tmp, "", "\t")
if err != nil { if err != nil {
log.Println(err) log.Println(err)
} else { } else {