From 7f75c5d4ee9cd2e9d86b7ff62ebf38b9172d2c88 Mon Sep 17 00:00:00 2001 From: Viacheslav Poturaev Date: Fri, 26 May 2023 16:43:48 +0200 Subject: [PATCH] Remove redundant return --- suite_context_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite_context_test.go b/suite_context_test.go index a554a52..b6efbe6 100644 --- a/suite_context_test.go +++ b/suite_context_test.go @@ -802,7 +802,7 @@ func TestScenarioContext_After_cancelled(t *testing.T) { ctxDone := make(chan struct{}) suite := TestSuite{ ScenarioInitializer: func(scenarioContext *ScenarioContext) { - scenarioContext.When(`^foo$`, func() { return }) + scenarioContext.When(`^foo$`, func() {}) scenarioContext.After(func(ctx context.Context, sc *Scenario, err error) (context.Context, error) { go func() { <-ctx.Done()