fix writing back the Filename into unusedKeys in ParseConfig (#12615)
This commit is contained in:
parent
f4c1a09e25
commit
8b29493e76
|
@ -526,8 +526,8 @@ func ParseConfig(d, source string) (*Config, error) {
|
||||||
result.UnusedKeys = configutil.UnusedFieldDifference(result.UnusedKeys, nil, append(result.FoundKeys, sharedConfig.FoundKeys...))
|
result.UnusedKeys = configutil.UnusedFieldDifference(result.UnusedKeys, nil, append(result.FoundKeys, sharedConfig.FoundKeys...))
|
||||||
// Assign file info
|
// Assign file info
|
||||||
for _, v := range result.UnusedKeys {
|
for _, v := range result.UnusedKeys {
|
||||||
for _, p := range v {
|
for i := range v {
|
||||||
p.Filename = source
|
v[i].Filename = source
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue