Skip to content

Commit

Permalink
go/common/entity: Use pretty-printed JSON when saving entity to file
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanez committed Sep 17, 2021
1 parent 9243607 commit 9b22a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/common/entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (e *Entity) Save(baseDir string) error {
entityPath := filepath.Join(baseDir, entityFilename)

// Write to disk.
b, err := json.Marshal(e)
b, err := json.MarshalIndent(e, "", " ")
if err != nil {
return err
}
Expand Down

0 comments on commit 9b22a1d

Please sign in to comment.