Skip to content

Commit

Permalink
templates: Using the variable on range scope testCase in function l…
Browse files Browse the repository at this point in the history
…iteral (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>
  • Loading branch information
thaJeztah committed Oct 31, 2019
1 parent c828fa1 commit 54d48de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/templates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func TestParseTruncateFunction(t *testing.T) {
}

for _, testCase := range testCases {
testCase := testCase

tm, err := Parse(testCase.template)
assert.NilError(t, err)

Expand Down

0 comments on commit 54d48de

Please sign in to comment.