Fix -vet and -strict-style failures in tests

This commit is contained in:
Feoramund
2024-08-26 16:20:08 -04:00
parent 60cd0da2ed
commit 1f04f541cf
5 changed files with 20 additions and 21 deletions
+1 -1
View File
@@ -429,7 +429,7 @@ map_with_integer_keys :: proc(t: ^testing.T) {
defer delete_map(my_map2)
unmarshal_err := json.unmarshal(marshaled_data, &my_map2)
defer for key, item in my_map2 {
defer for _, item in my_map2 {
runtime.delete_string(item)
}
testing.expectf(t, unmarshal_err == nil, "Expected `json.unmarshal` to return nil, got %v", unmarshal_err)