mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Use any instead of interface{}
The keyword is available since Go 1.18 (see https://pkg.go.dev/builtin#any). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@ func TestStateStatus(t *testing.T) {
|
||||
}
|
||||
|
||||
func testTransitions(t *testing.T, initialState containerState, valid []containerState) {
|
||||
validMap := map[reflect.Type]interface{}{}
|
||||
validMap := map[reflect.Type]any{}
|
||||
for _, validState := range valid {
|
||||
validMap[reflect.TypeOf(validState)] = nil
|
||||
t.Run(validState.status().String(), func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user