summaryrefslogtreecommitdiff
path: root/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'template.go')
-rw-r--r--template.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/template.go b/template.go
index 1826fd7..60b076b 100644
--- a/template.go
+++ b/template.go
@@ -254,9 +254,7 @@ func templateChainDependencies(template Template) []Template {
requires := template.Templates()
chain := make([]Template, len(requires)*2)
for _, req := range requires {
- for _, sub := range templateChainDependencies(req) {
- chain = append(chain, sub)
- }
+ chain = append(chain, templateChainDependencies(req)...)
}
chain = append(chain, template)
return chain