mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
Indent marshalled JSON
It is a quickfix requested by Dan
This commit is contained in:
parent
11af79d300
commit
fcc6ec1549
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user