Save the `.moprc` file in a cleaner way.

master
joce 3 years ago
parent f20930d634
commit 16b9c689f4
  1. 2
      profile.go

@ -98,7 +98,7 @@ func NewProfile(filename string) *Profile {
// Save serializes settings using JSON and saves them in ~/.moprc file.
func (profile *Profile) Save() error {
data, err := json.Marshal(profile)
data, err := json.MarshalIndent(profile, "", " ")
if err != nil {
return err
}

Loading…
Cancel
Save