templates: Using the variable on range scope `testCase` in function literal (scopelint)

```
templates/templates_test.go:74:29: Using the variable on range scope `testCase` in function literal (scopelint)
			assert.Check(t, is.Equal(testCase.expected, b.String()))
			                         ^
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 54d48de216)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-10-29 13:35:54 +01:00
parent a087595fb6
commit ae7b1f737b
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ func TestParseTruncateFunction(t *testing.T) {
}
for _, testCase := range testCases {
testCase := testCase
tm, err := Parse(testCase.template)
assert.NilError(t, err)