-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
chore: use es6 arrows function #870
Conversation
299b73b
to
c174a4f
Compare
Interesting to see if there is perf impact of this change ( could be either way ) |
Doubtful, especially given https://stackoverflow.com/questions/44030645/are-arrow-functions-faster-more-performant-lighter-than-ordinary-standalone-f It mostly helps with code readability as they are less verbose and don't change On another note: I changed the way the db awaiter works, less spam :) |
Thanks! One more thing to improve with test signal/noise ratio is to clean up "packet out of order" messages from test server (or actually fix packet numbers in server) |
Yea, that's out of scope of my PR tho, plus I'm not exactly sure how I would fix those 😛 |
20f0d6b
to
48c2d0c
Compare
rebased |
Broke link, goddamnit 😞 |
48c2d0c
to
424d313
Compare
Hey @sidorares would you like to merge this and resolve conflicts yourself, or should I rebase again? |
if you can would be great, otherwise I'll do |
424d313
to
dcbba95
Compare
Done, hoping that tests pass :) |
dcbba95
to
c8b204f
Compare
Oh great, I amended without pulling first 😅 |
c8b204f
to
6571b87
Compare
@sidorares I think this is ripe now, I checked for additional |
This converts most function callback use to arrow functions.
I will push 3 invidual commits and run them through CI (builds are extremely flaky locally).
The first 2 will run CI without lint, the 3rd one adds linting back.
The first commit was entirely automated via eslint.
The second and 2nd is fixing docs and invalid-this errors.
The 3rd final invalid-this errors.