small nit

This commit is contained in:
Jared Wasinger 2024-09-24 17:43:18 +07:00
parent 3060ae1c2f
commit 6b05f83083

View file

@ -118,8 +118,7 @@ type stateTestCase struct {
// collectMatchedSubtests returns test cases which match against provided filtering CLI parameters // collectMatchedSubtests returns test cases which match against provided filtering CLI parameters
func collectMatchedSubtests(ctx *cli.Context, testsByName map[string]tests.StateTest) []stateTestCase { func collectMatchedSubtests(ctx *cli.Context, testsByName map[string]tests.StateTest) []stateTestCase {
res := []stateTestCase{} var res []stateTestCase
subtestName := ctx.String(TestNameFlag.Name) subtestName := ctx.String(TestNameFlag.Name)
if subtestName != "" { if subtestName != "" {
if subtest, ok := testsByName[subtestName]; ok { if subtest, ok := testsByName[subtestName]; ok {