-
Notifications
You must be signed in to change notification settings - Fork 841
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
refactor(test): prefer forEach instead of map #556
refactor(test): prefer forEach instead of map #556
Conversation
Codecov Report
@@ Coverage Diff @@
## master #556 +/- ##
=========================================
- Coverage 90.22% 90.2% -0.02%
=========================================
Files 150 150
Lines 7435 7462 +27
Branches 663 669 +6
=========================================
+ Hits 6708 6731 +23
- Misses 727 731 +4
|
In general do we prefer |
One interesting note is that |
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.
Definitely prefer forEach
to map
when the eventual list is not used
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
Which problem is this PR solving?
forEach
overmap
unless the generated array is needed.Short description of the changes