1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 03:36:16 +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)
}
blob, err := json.Marshal(tmp)
blob, err := json.MarshalIndent(tmp, "", "\t")
if err != nil {
log.Println(err)
return err
@ -124,7 +124,7 @@ func dumpTokens() {
return true
})
blob, err := json.Marshal(tmp)
blob, err := json.MarshalIndent(tmp, "", "\t")
if err != nil {
log.Println(err)
} else {