mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
hugolib: Simplify some code
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
0665a3951b
commit
e38e881248
@@ -1440,9 +1440,7 @@ func (p *Page) update(frontmatter map[string]interface{}) error {
|
||||
resources = append(resources, cast.ToStringMap(vvv))
|
||||
}
|
||||
case []map[string]interface{}:
|
||||
for _, vvv := range vv {
|
||||
resources = append(resources, vvv)
|
||||
}
|
||||
resources = append(resources, vv...)
|
||||
case []interface{}:
|
||||
for _, vvv := range vv {
|
||||
switch vvvv := vvv.(type) {
|
||||
|
Reference in New Issue
Block a user