From d1763418a8618ae971a13719f14341b5cc1fc003 Mon Sep 17 00:00:00 2001 From: CPunch Date: Mon, 4 Dec 2023 20:33:53 -0600 Subject: [PATCH] removed useless closure --- login/login_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/login/login_test.go b/login/login_test.go index 2e171a4..358ef7e 100644 --- a/login/login_test.go +++ b/login/login_test.go @@ -103,9 +103,7 @@ func TestLoginSuccSequence(t *testing.T) { recv := make(chan *cnet.PacketEvent) peer := makeDummyPeer(ctx, is, recv) - defer func() { - peer.Kill() - }() + defer peer.Kill() // send login request (this should create an account) err := peer.Send(protocol.P_CL2LS_REQ_LOGIN, protocol.SP_CL2LS_REQ_LOGIN{