fix test-style

Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
This commit is contained in:
zwwhdls 2020-01-21 22:04:13 +08:00
parent 4eda4fa06d
commit 16a85f7570

View file

@ -103,7 +103,7 @@ func (e Engine) initFunMap(t *template.Template, referenceTpls map[string]render
if v > recursionMaxNums {
return "", errors.Wrapf(fmt.Errorf("unable to execute template"), "rendering template has a nested reference name: %s", name)
}
includedNames[name] ++
includedNames[name]++
} else {
includedNames[name] = 1
}