Skip to content

Commit

Permalink
Fix wrong nilcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Sep 17, 2024
1 parent 0b78ce7 commit 2e825eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pfcp/far.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (far *FAR) SetApplyAction(aa *ie.IE) error {
func (far *FAR) ForwardingParameters() (*ie.IE, error) {
// This IE shall be present when the Apply Action requests
// the packets to be forwarded. It may be present otherwise.
if far.ForwardingParameters == nil {
if far.forwardingParameters == nil {
return nil, fmt.Errorf("No forwarding parameters ie")
}
return far.forwardingParameters, nil
Expand Down

0 comments on commit 2e825eb

Please sign in to comment.