Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the correct field to check if it's nil #57

Open
jiho-jung opened this issue Mar 6, 2024 · 0 comments
Open

Use the correct field to check if it's nil #57

jiho-jung opened this issue Mar 6, 2024 · 0 comments

Comments

@jiho-jung
Copy link

I found that an incorrect field is used to check if it's nil. See below

if a.rangeProtoMin != nil {
   binary.BigEndian.PutUint16(data[n:], *a.rangeProtoMax)
   n += 2
}

It would be like this. If I am correct, please apply my changes.

if a.rangeProtoMax != nil {
   binary.BigEndian.PutUint16(data[n:], *a.rangeProtoMax)
   n += 2
}

if a.RangeProtoMin != nil {

if a.rangeProtoMin != nil {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant