Enforce use of any instead of interface{} (#30588)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9aa4818c71
Коммит
166a676fe5
@@ -296,7 +296,7 @@ func TestIsJSONEmpty(t *testing.T) {
|
||||
if !testCase.Empty {
|
||||
// don't really need to test the JSON unmarshaller but this is included
|
||||
// to ensure the test cases stay valid.
|
||||
var v interface{}
|
||||
var v any
|
||||
err := json.Unmarshal(testCase.Data, &v)
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user