helpers: Slight improvement of ToLowerMap

See #2581
This commit is contained in:
Bjørn Erik Pedersen 2016-10-16 22:49:21 +02:00
parent 40b1b8f703
commit df943595a7

View file

@ -137,8 +137,9 @@ func ToLowerMap(m map[string]interface{}) {
lKey := strings.ToLower(k)
if k != lKey {
delete(m, k)
m[lKey] = v
}
m[lKey] = v
}
}