Skip to content

Commit

Permalink
Remove duplicated context import (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-arrobo authored Jun 18, 2024
1 parent 4791b0a commit aa90b14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fsm/txnFsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"net/http"

"github.com/omec-project/openapi/models"
"github.com/omec-project/smf/context"
smf_context "github.com/omec-project/smf/context"
"github.com/omec-project/smf/factory"
"github.com/omec-project/smf/logger"
Expand Down Expand Up @@ -186,7 +185,7 @@ func (SmfTxnFsm) TxnFailure(txn *transaction.Transaction) (transaction.TxnEvent,
// Put Failure Rsp
switch txn.MsgType {
case svcmsgtypes.PfcpSessCreate:
if txn.Ctxt != nil && txn.Ctxt.(*smf_context.SMContext).SMContextState == context.SmStatePfcpCreatePending {
if txn.Ctxt != nil && txn.Ctxt.(*smf_context.SMContext).SMContextState == smf_context.SmStatePfcpCreatePending {
nextTxn := transaction.NewTransaction(nil, nil, svcmsgtypes.PfcpSessCreateFailure)
nextTxn.Ctxt = txn.Ctxt
smContext := txn.Ctxt.(*smf_context.SMContext)
Expand Down

0 comments on commit aa90b14

Please sign in to comment.