-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
stream: replace manual function validation with validateFunction #59529
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
stream: replace manual function validation with validateFunction #59529
Conversation
Review requested:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #59529 +/- ##
==========================================
+ Coverage 89.77% 89.87% +0.09%
==========================================
Files 654 657 +3
Lines 192633 193397 +764
Branches 37727 37938 +211
==========================================
+ Hits 172937 173810 +873
+ Misses 12297 12084 -213
- Partials 7399 7503 +104
🚀 New features to boost your workflow:
|
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.
IIRC this was done on purpose so the error message includes AsyncFunction
to make it clear those utils support callbacks returning a promise. I'm not against scraping that in the name of consistency, I just wanted to point it out in case that context was not known
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
Replace repetitive manual function type checking with the existing validateFunction in multiple stream operator functions.
a5d0a92
to
c4e0bb4
Compare
Landed in eefe3b1 |
Replace repetitive manual function type checking with the existing validateFunction in multiple stream operator functions. PR-URL: #59529 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Mattias Buelens <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
stream: replace manual function validation with validateFunction
Replace repetitive manual function type checking with the existing
validateFunction in multiple stream operator functions.