-
Notifications
You must be signed in to change notification settings - Fork 7
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
Verify function return values are semantically equivalent #40
Comments
super good point @KendallWeihe. which makes me wonder whether we should even return |
If you're always returning an error in the false case then it makes sense for the function to just return the error. It would make sense if you need to distinguish between invalid for some reason and any other error. |
This is fixed for the Issue still present in the |
I had started down this path last week but didn't get all the way https://github.com/TBD54566975/web5-go/tree/kendallw/verify-return-types |
If
ok
isfalse
thenerr
will always benil
Which raises the question, do we want this? Because as it is now requires one extra
if
statement for the same semantic situation, which is boilerplateThe text was updated successfully, but these errors were encountered: