about summary refs log tree commit diff
path: root/templater/templater.go
diff options
context:
space:
mode:
Diffstat (limited to 'templater/templater.go')
-rw-r--r--templater/templater.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/templater/templater.go b/templater/templater.go
index afb96423e62e..9054ebac4089 100644
--- a/templater/templater.go
+++ b/templater/templater.go
@@ -42,7 +42,7 @@ type RenderedResourceSet struct {
 
 func LoadAndApplyTemplates(include *[]string, exclude *[]string, c *context.Context) ([]RenderedResourceSet, error) {
 	limitedResourceSets := applyLimits(&c.ResourceSets, include, exclude)
-	renderedResourceSets := make([]RenderedResourceSet, len(c.ResourceSets))
+	renderedResourceSets := make([]RenderedResourceSet, 0)
 
 	if len(*limitedResourceSets) == 0 {
 		return renderedResourceSets, fmt.Errorf("No valid resource sets included!")
@@ -83,7 +83,7 @@ func processResourceSet(c *context.Context, rs *context.ResourceSet) (*RenderedR
 }
 
 func processFiles(c *context.Context, rs *context.ResourceSet, rp string, files []os.FileInfo) ([]RenderedResource, error) {
-	resources := make([]RenderedResource, len(c.ResourceSets))
+	resources := make([]RenderedResource, 0)
 
 	for _, file := range files {
 		if !file.IsDir() && isResourceFile(file) {