Http: Improve `finish()` callback and code legibility (Fixes #7295)
Checklist
-
make -j4 test
(UNIX) orvcbuild test nosign
(Windows) passes -
the commit message follows commit guidelines
Affected core subsystem(s)
http
( Specifically _http_outgoing.js
: OutgoingMessage.prototype.end
method )
Description of change
- Converted callback function to arrow function to take advantage of lexical
this
. - Gathered code relating to
finish
event together to improve code clarity. - See #7295 (closed) for further details.