hugolib: Simplify some code

This commit is contained in:
Cameron Moore
2018-08-28 15:51:44 -05:00
committed by Bjørn Erik Pedersen
parent 0665a3951b
commit e38e881248
4 changed files with 15 additions and 21 deletions

View File

@@ -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) {