Merge pull request #143 from lil-bandit/formatted-json-config

Make the config JSON more readable
This commit is contained in:
Yami Odymel 2025-07-30 08:06:42 +08:00 committed by GitHub
commit cc91274722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ func (m *Manager) SaveConfig() error {
return true
})
b, err := json.Marshal(config)
b, err := json.MarshalIndent(config, "", " ")
if err != nil {
return fmt.Errorf("marshal: %w", err)
}