mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-08-29 09:02:31 +00:00
Indent marshalled JSON
It is a quickfix requested by Dan
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user