fix writing back the Filename into unusedKeys in ParseConfig (#12615)

This commit is contained in:
hghaf099 2021-09-23 09:30:44 -04:00 committed by GitHub
parent f4c1a09e25
commit 8b29493e76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -526,8 +526,8 @@ func ParseConfig(d, source string) (*Config, error) {
result.UnusedKeys = configutil.UnusedFieldDifference(result.UnusedKeys, nil, append(result.FoundKeys, sharedConfig.FoundKeys...))
// Assign file info
for _, v := range result.UnusedKeys {
for _, p := range v {
p.Filename = source
for i := range v {
v[i].Filename = source
}
}