Skip to content

Commit

Permalink
fix: ci linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 authored Jan 16, 2024
1 parent 5fd45fb commit 682b5f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion internal/sbi/consumer/ue_context_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package consumer
import (
"context"

"github.com/pkg/errors"

"github.com/free5gc/openapi"
"github.com/free5gc/openapi/Nudm_UEContextManagement"
"github.com/free5gc/openapi/models"
smf_context "github.com/free5gc/smf/internal/context"
"github.com/free5gc/smf/internal/logger"
"github.com/free5gc/smf/internal/util"
"github.com/pkg/errors"
)

func UeCmRegistration(smCtx *smf_context.SMContext) (
Expand Down
6 changes: 3 additions & 3 deletions internal/sbi/producer/pdu_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,22 +184,22 @@ func HandlePDUSessionSMContextCreate(isDone <-chan struct{},
smContext.SMPolicyID = smPolicyID

// Update SessionRule from decision
if err := smContext.ApplySessionRules(smPolicyDecision); err != nil {
if err = smContext.ApplySessionRules(smPolicyDecision); err != nil {
smContext.Log.Errorf("PDUSessionSMContextCreate err: %v", err)
return makeEstRejectResAndReleaseSMContext(smContext,
nasMessage.Cause5GSMRequestRejectedUnspecified,
&Nsmf_PDUSession.SubscriptionDenied)
}

if err := smContext.SelectDefaultDataPath(); err != nil {
if err = smContext.SelectDefaultDataPath(); 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.ApplyPccRules(smPolicyDecision); err != nil {
if err = smContext.ApplyPccRules(smPolicyDecision); err != nil {
smContext.Log.Errorf("apply sm policy decision error: %+v", err)
}

Expand Down

0 comments on commit 682b5f2

Please sign in to comment.