From 7a92dab7b3a6f120f61315bc10ff7f83ef10a592 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Mon, 22 Jan 2024 17:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E5=8A=9B=E5=AD=A6=E5=88=97=E8=BD=A6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=85=8D=E7=BD=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ts/simulation/wayside/memory/wayside_memory_train.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ts/simulation/wayside/memory/wayside_memory_train.go b/ts/simulation/wayside/memory/wayside_memory_train.go index 1bf8094..a7de276 100644 --- a/ts/simulation/wayside/memory/wayside_memory_train.go +++ b/ts/simulation/wayside/memory/wayside_memory_train.go @@ -181,9 +181,7 @@ func AddTrainStateNew(vs *VerifySimulation, status *state_proto.TrainState, conf func createOrUpdateStateDynamicConfig(trainState *state_proto.TrainState, configTrainData dto.ConfigTrainData, trainEndsA dto.ConfigTrainEnds, trainEndsB dto.ConfigTrainEnds) { trainState.TrainDynamicConfig = service.TrainConfigToProtoConvert(&configTrainData) - if trainState.TrainDynamicConfig == nil { - slog.Error("") - } else { + if trainState.TrainDynamicConfig != nil { copyTrainEnds(trainState, "TrainEndsA", trainEndsA) copyTrainEnds(trainState, "TrainEndsB", trainEndsB) }