semaphore
semaphore copied to clipboard
fix: unnecessary use of `map()` for side effects
Description
replaced the map(...).map(...) chain with forEach(...).forEach(...) as the result of map wasn't being used
Checklist
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] My changes generate no new warnings
- [x] I have run
yarn formatandyarn lintwithout getting any errors - [x] I have added tests that prove my fix is effective or that my feature works
- [x] New and existing unit tests pass locally with my changes