Skip to content

Commit

Permalink
fix return err in ReceiveFLAP()
Browse files Browse the repository at this point in the history
  • Loading branch information
mk6i committed May 25, 2024
1 parent a4d8d72 commit 9c2857f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wire/frames.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ func (f *FlapClient) ReceiveFLAP() (FLAPFrame, *bytes.Buffer, error) {
}

buf, err := flap.ReadBody(f.r)

return flap, buf, fmt.Errorf("unable to read FLAP body: %w", err)
if err != nil {
err = fmt.Errorf("unable to read FLAP body: %w", err)
}
return flap, buf, err
}

// SendSignoffFrame sends a sign-off FLAP frame with attached TLVs as the last
Expand Down

0 comments on commit 9c2857f

Please sign in to comment.