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] }