diff options
author | Kurt <kurt.w.jung@gmail.com> | 2017-11-24 10:42:13 -0500 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2017-11-24 10:42:13 -0500 |
commit | a3f28ba717a677e133f159e3fc1d42b249c2b511 (patch) | |
tree | 9e5ff9c0ff5ec004607b24b24b54e1a882e5b524 /template.go | |
parent | 8251b8def6a5b73f826587308bcba926a17b6ea9 (diff) | |
parent | c6b082a6263bbfcfab0dcc4f4c4bb2c024c84f10 (diff) |
Merge branch 'wgliang-master'
Diffstat (limited to 'template.go')
-rw-r--r-- | template.go | 4 |
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 |