fix: update range expression

This commit is contained in:
Edwin Smith 2024-10-08 11:02:24 -05:00
parent 95185a88ad
commit 46e6b6518e
No known key found for this signature in database

View file

@ -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)
}