From c7c9baf730f18905ff4632ca005a8a8613263ddb Mon Sep 17 00:00:00 2001 From: ekexium Date: Thu, 9 Jan 2025 13:29:26 +0800 Subject: [PATCH] fix lint Signed-off-by: ekexium --- oracle/oracles/pd_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oracle/oracles/pd_test.go b/oracle/oracles/pd_test.go index c40924715..72b6dfab2 100644 --- a/oracle/oracles/pd_test.go +++ b/oracle/oracles/pd_test.go @@ -335,9 +335,8 @@ func TestValidateSnapshotReadTSReusingGetTSResult(t *testing.T) { getCtx := func(index int) context.Context { if cancelIndex == index { return ctx - } else { - return context.Background() } + return context.Background() } results = append(results, asyncValidate(getCtx(0), ts-2))