1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-04-30 16:59:53 +00:00

helpers: Slight improvement of ToLowerMap

See 
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
}
}