Improve configuration merge

This commit is contained in:
世界 committed 2024-01-03 12:21:47 +08:00
1 parent fe053e26b5
commit 36b0f2e91a
3 files changed
+16 -18

No files matched your search

+1 -2
View File
@@ -20,8 +20,7 @@ import (
)
func parseConfig(configContent string) (option.Options, error) {
var options option.Options
err := options.UnmarshalJSON([]byte(configContent))
options, err := json.UnmarshalExtended[option.Options]([]byte(configContent))
if err != nil {
return option.Options{}, E.Cause(err, "decode config")
}