mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 17:28:31 +02:00
chore(json): use stdlib json for compatibility
This commit is contained in:
@@ -83,7 +83,7 @@ func save() error {
|
||||
errs := gperr.NewBuilder("failed to save data stores")
|
||||
for ns, store := range stores {
|
||||
path := filepath.Join(storesPath, string(ns)+".json")
|
||||
if err := serialization.SaveFile(path, &store, 0o644, sonic.Marshal); err != nil {
|
||||
if err := serialization.SaveFile(path, &store, 0o644, json.Marshal); err != nil {
|
||||
errs.Add(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user