Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchennn committed Dec 1, 2023
1 parent 41ccb81 commit f4f171f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions internal/forwarder/gtp5g.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,18 +339,19 @@ func (g *Gtp5g) newPdi(i *ie.IE) (nl.AttrList, error) {

var sourceInterface uint8
var sdfFilterIE *ie.IE

L:
for _, x := range ies {
switch x.Type {
case ie.SourceInterface:
var err1 error
sourceInterface, err1 = x.SourceInterface()
if err1 != nil {
break
sourceInterface, err = x.SourceInterface()
if err != nil {
break L
}
case ie.FTEID:
v, err := x.FTEID()
if err != nil {
break
break L
}
attrs = append(attrs, nl.Attr{
Type: gtp5gnl.PDI_F_TEID,
Expand All @@ -369,7 +370,7 @@ func (g *Gtp5g) newPdi(i *ie.IE) (nl.AttrList, error) {
case ie.UEIPAddress:
v, err := x.UEIPAddress()
if err != nil {
break
break L
}
attrs = append(attrs, nl.Attr{
Type: gtp5gnl.PDI_UE_ADDR_IPV4,
Expand Down

0 comments on commit f4f171f

Please sign in to comment.