From d33412ac608c7fd98977415570ae7a71a927a9fd Mon Sep 17 00:00:00 2001 From: Javad Date: Mon, 13 Jan 2025 18:16:50 +0330 Subject: [PATCH] fix: linter errors --- www/zmq/server_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/www/zmq/server_test.go b/www/zmq/server_test.go index 32c0653cb..7561ff7a8 100644 --- a/www/zmq/server_test.go +++ b/www/zmq/server_test.go @@ -49,11 +49,9 @@ func (ts *testData) resetServer() { ts.eventCh = nil } -func (ts *testData) cleanup() func() { - return func() { - ts.server.Close() - ts.resetServer() - } +func (ts *testData) cleanup() { + ts.server.Close() + ts.resetServer() } func TestServerWithDefaultConfig(t *testing.T) {