From debfc4ea784823a2f6ef859186709d3bb5b9b208 Mon Sep 17 00:00:00 2001 From: nuxtreact Date: Fri, 13 Feb 2026 00:24:27 +0800 Subject: [PATCH] refactor: omit unnecessary reassignment Signed-off-by: nuxtreact --- pkg/raft/election_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/raft/election_test.go b/pkg/raft/election_test.go index ebb513db4d..4d2b65be97 100644 --- a/pkg/raft/election_test.go +++ b/pkg/raft/election_test.go @@ -311,7 +311,6 @@ func TestDynamicLeaderElectionRun(t *testing.T) { } for name, spec := range specs { - name, spec := name, spec t.Run(name, func(t *testing.T) { d, runCtx, cancel := spec.setup(t) defer cancel()