-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Simplify the NetworkManager.prototype.requestRange
method
#19272
Simplify the NetworkManager.prototype.requestRange
method
#19272
Conversation
Thanks to modern JavaScript we don't need to "manually" build the arguments object.
57e7a3e
to
303c6d9
Compare
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/512b850acc14abd/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/70a9b70377e0f95/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/512b850acc14abd/output.txt Total script time: 2.31 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/70a9b70377e0f95/output.txt Total script time: 7.15 mins
|
args[prop] = listeners[prop]; | ||
} | ||
return this.request(args); | ||
return this.request({ begin, end, ...listeners }); |
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.
Can't we just have requestRange(options) { return this.request(optinos); }
?
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.
This comment made me take another look at the code, so I've just submitted PR #19273 instead :-)
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. Thank you.
Thanks to modern JavaScript we don't need to "manually" build the arguments object.