From 46e6b6518ec8dec7531637a836bd1887c6f01630 Mon Sep 17 00:00:00 2001 From: Edwin Smith Date: Tue, 8 Oct 2024 11:02:24 -0500 Subject: [PATCH] fix: update range expression --- pkg/validator/validator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/validator/validator_test.go b/pkg/validator/validator_test.go index aa86951..4dd4fd0 100644 --- a/pkg/validator/validator_test.go +++ b/pkg/validator/validator_test.go @@ -408,7 +408,7 @@ lastName: bar if len(got.ValidationErrors) != len(testCase.expectErrors) { t.Errorf("Test '%s': expected ValidationErrors: %+v, got: % v", testCase.name, testCase.expectErrors, got.ValidationErrors) } - for i, _ := range testCase.expectErrors { + for i := range testCase.expectErrors { if testCase.expectErrors[i] != got.ValidationErrors[i] { t.Errorf("Test '%s': expected ValidationErrors: %+v, got: % v", testCase.name, testCase.expectErrors, got.ValidationErrors) }