From 9770af6cbacbab50b49a016ad4a1c5d6cbbe3be5 Mon Sep 17 00:00:00 2001 From: parker178912 Date: Wed, 1 May 2024 18:57:47 +0800 Subject: [PATCH] fix: fix linter --- internal/context/amf_ran.go | 3 ++- internal/context/ran_ue.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/context/amf_ran.go b/internal/context/amf_ran.go index 89903b5..9fb3905 100644 --- a/internal/context/amf_ran.go +++ b/internal/context/amf_ran.go @@ -110,7 +110,8 @@ func (ran *AmfRan) SetRanId(ranNodeId *ngapType.GlobalRANNodeID) { ranId := ngapConvert.RanIdToModels(*ranNodeId) ran.RanPresent = ranNodeId.Present ran.RanId = &ranId - if ranNodeId.Present == ngapType.GlobalRANNodeIDPresentGlobalN3IWFID || ranNodeId.Present == ngapType.GlobalRANNodeIDPresentChoiceExtensions { + if ranNodeId.Present == ngapType.GlobalRANNodeIDPresentGlobalN3IWFID || + ranNodeId.Present == ngapType.GlobalRANNodeIDPresentChoiceExtensions { ran.AnType = models.AccessType_NON_3_GPP_ACCESS } else { ran.AnType = models.AccessType__3_GPP_ACCESS diff --git a/internal/context/ran_ue.go b/internal/context/ran_ue.go index ac0ae15..198cbce 100644 --- a/internal/context/ran_ue.go +++ b/internal/context/ran_ue.go @@ -255,7 +255,8 @@ func (ranUe *RanUe) UpdateLocation(userLocationInformation *ngapType.UserLocatio ranUe.AmfUe.Tai = *ranUe.Location.N3gaLocation.N3gppTai } case ngapType.UserLocationInformationPresentChoiceExtensions: - userLocationInformationExtIEsValue := userLocationInformation.ChoiceExtensions.UserLocationInformationExtIEs.Value.UserLocationInformationTNGF + userLocationInformationExtIEsValue := userLocationInformation. + ChoiceExtensions.UserLocationInformationExtIEs.Value.UserLocationInformationTNGF if ranUe.Location.N3gaLocation == nil { ranUe.Location.N3gaLocation = new(models.N3gaLocation) }