Skip to content

Commit 7186778

Browse files
committed
clear old keys
1 parent 729c98b commit 7186778

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utils/config/config.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,7 @@ func transformChildren(config *koanf.Koanf, path string, transform func(key stri
158158
transformed[newKey] = newVal
159159
}
160160

161-
config.Load(confmap.Provider(map[string]any{
162-
path: map[string]any{},
163-
}, "."), nil)
161+
config.Delete(path)
164162

165163
config.Load(confmap.Provider(map[string]any{
166164
path: transformed,

0 commit comments

Comments
 (0)