Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Henning committed Sep 25, 2024
1 parent 04e8e6d commit 4631542
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/context/user_plane_information.go
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ func (upi *UserPlaneInformation) SelectUPFAndAllocUEIP(selection *UPFSelectionPa
for _, upf := range sortedUPFList {
logger.CtxLog.Debugf("check start UPF: %s",
upi.GetUPFNameByIp(upf.NodeID.ResolveNodeIdToIp().String()))
if err := upf.UPF.IsAssociated(); err != nil {
if err = upf.UPF.IsAssociated(); err != nil {
logger.CtxLog.Infoln(err)
continue
}
Expand Down
11 changes: 7 additions & 4 deletions internal/pfcp/message/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func SendPfcpSessionEstablishmentRequest(
urrList []*context.URR,
) (resMsg *pfcpUdp.Message, err error) {
nodeIDtoIP := upf.NodeID.ResolveNodeIdToIp()
if err := upf.IsAssociated(); err != nil {
if err = upf.IsAssociated(); err != nil {
return nil, err
}

Expand Down Expand Up @@ -223,7 +223,7 @@ func SendPfcpSessionModificationRequest(
urrList []*context.URR,
) (resMsg *pfcpUdp.Message, err error) {
nodeIDtoIP := upf.NodeID.ResolveNodeIdToIp()
if err := upf.IsAssociated(); err != nil {
if err = upf.IsAssociated(); err != nil {
return nil, err
}

Expand Down Expand Up @@ -296,9 +296,12 @@ func SendPfcpSessionModificationResponse(addr *net.UDPAddr) {
udp.SendPfcpResponse(message, addr)
}

func SendPfcpSessionDeletionRequest(upf *context.UPF, ctx *context.SMContext) (resMsg *pfcpUdp.Message, err error) {
func SendPfcpSessionDeletionRequest(
upf *context.UPF,
ctx *context.SMContext,
) (resMsg *pfcpUdp.Message, err error) {
nodeIDtoIP := upf.NodeID.ResolveNodeIdToIp()
if err := upf.IsAssociated(); err != nil {
if err = upf.IsAssociated(); err != nil {
return nil, err
}

Expand Down

0 comments on commit 4631542

Please sign in to comment.