From 07c38b38226e50eb51a49c43b9cccf93cdd3ff78 Mon Sep 17 00:00:00 2001 From: "CTFang@WireLab" Date: Mon, 18 Dec 2023 11:05:45 +0000 Subject: [PATCH] Fix: Remove unused condition --- internal/context/context.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/context/context.go b/internal/context/context.go index 236c29a..afc9391 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -131,9 +131,7 @@ func InitAmfContext(context *AMFContext) { context.LadnPool[ladn.Dnn] = ladn } context.NrfUri = config.GetNrfUri() - if configuration.NrfCertPem != "" { - context.NrfCertPem = configuration.NrfCertPem - } + context.NrfCertPem = configuration.NrfCertPem security := configuration.Security if security != nil { context.SecurityAlgorithm.IntegrityOrder = getIntAlgOrder(security.IntegrityOrder)