0 is the default value

This commit is contained in:
Łukasz Mierzwa
2017-05-26 21:59:54 +01:00
parent 667a6278c6
commit a3f58fc52e

View File

@@ -533,7 +533,7 @@ func TestLimitFilter(t *testing.T) {
}
if f.GetIsValid() {
alert := models.Alert{}
var index int = 0
var index int
for _, isMatch := range ft.IsMatch {
m := f.Match(&alert, index)
if m != isMatch {