Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
saileshvvr committed Feb 4, 2024
1 parent acf2806 commit 443fa5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/sbi/consumer/subscriber_data_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func SDMGetSmData(smCtx *smf_context.SMContext,
smPlmnID *models.PlmnId,
) (problemDetails *models.ProblemDetails, err error) {
// Query UDM
if problemDetails, err := SendNFDiscoveryUDM(); err != nil {
if problemDetails, err = SendNFDiscoveryUDM(); err != nil {
smCtx.Log.Warnf("Send NF Discovery Serving UDM Error[%v]", err)
} else if problemDetails != nil {
smCtx.Log.Warnf("Send NF Discovery Serving UDM Problem[%+v]", problemDetails)
Expand Down
8 changes: 4 additions & 4 deletions internal/sbi/producer/pdu_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func HandlePDUSessionSMContextCreate(isDone <-chan struct{},
}

establishmentRequest := m.PDUSessionEstablishmentRequest
if err := HandlePDUSessionEstablishmentRequest(smContext, establishmentRequest); err != nil {
if err = HandlePDUSessionEstablishmentRequest(smContext, establishmentRequest); err != nil {
smContext.Log.Errorf("PDU Session Establishment fail by %s", err)
gsmError := &GSMError{}
if errors.As(err, &gsmError) {
Expand All @@ -110,7 +110,7 @@ func HandlePDUSessionSMContextCreate(isDone <-chan struct{},
}

// Discover and new Namf_Comm client for use later
if problemDetails, err := consumer.SendNFDiscoveryServingAMF(smContext); err != nil {
if problemDetails, err = consumer.SendNFDiscoveryServingAMF(smContext); err != nil {
smContext.Log.Warnf("Send NF Discovery Serving AMF Error[%v]", err)
} else if problemDetails != nil {
smContext.Log.Warnf("Send NF Discovery Serving AMF Problem[%+v]", problemDetails)
Expand All @@ -126,15 +126,15 @@ func HandlePDUSessionSMContextCreate(isDone <-chan struct{},
}
}

if err := smContext.AllocUeIP(); err != nil {
if err = smContext.AllocUeIP(); err != nil {
smContext.SetState(smf_context.InActive)
smContext.Log.Errorf("PDUSessionSMContextCreate err: %v", err)
return makeEstRejectResAndReleaseSMContext(smContext,
nasMessage.Cause5GSMInsufficientResourcesForSpecificSliceAndDNN,
&Nsmf_PDUSession.InsufficientResourceSliceDnn)
}

if err := smContext.PCFSelection(); err != nil {
if err = smContext.PCFSelection(); err != nil {
smContext.Log.Errorln("pcf selection error:", err)
}

Expand Down

0 comments on commit 443fa5f

Please sign in to comment.