From aa4acd1bd2cc963ba01e2f3eaf4c5f699b1a0234 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 30 Oct 2023 18:26:52 +0800 Subject: [PATCH] fix --- .../internal/logic/ws_allocation_processing_factory.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/websocket/internal/logic/ws_allocation_processing_factory.go b/server/websocket/internal/logic/ws_allocation_processing_factory.go index 7fedddc1..2e888040 100644 --- a/server/websocket/internal/logic/ws_allocation_processing_factory.go +++ b/server/websocket/internal/logic/ws_allocation_processing_factory.go @@ -16,8 +16,5 @@ var mapAllocationProcessor = map[constants.Websocket]allocationProcessorFactory{ } func (w *wsConnectItem) newAllocationProcessor(msgType constants.Websocket) allocationProcessorFactory { - if val, ok := mapAllocationProcessor[msgType]; ok { - return val - } - return nil + return mapAllocationProcessor[msgType] }