-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add result struct to activity function signature #881
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #881 +/- ##
==========================================
- Coverage 47.27% 47.12% -0.15%
==========================================
Files 94 94
Lines 5096 5135 +39
==========================================
+ Hits 2409 2420 +11
- Misses 2466 2492 +26
- Partials 221 223 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your approach is nearly correct; however, I've noticed an oversight. You're returning a nil pointer instead of a pointer to the result struct when there's no error. I'll highlight a few examples, although I've observed this issue in several places.
7171ffe
to
c09bf29
Compare
I made the recommend changes in the new commits. I also added some comments with my thoughts as a whole. |
Can you rebase? 🙏 |
8318770
to
cf21f7d
Compare
- Change tests so that they expect empty structs and errors as returns. [skip codecov]
cf21f7d
to
880c5ec
Compare
closes #800