Uh oh!
There was an error while loading. Please reload this page.
net: use object destructuring - #20959
Conversation
starkwang
commented
May 25, 2018
There was a problem hiding this comment.
This is not exactly the same as before. I think it is fine but host = 'localhost' !== options.host || 'localhost'. The first part is only going to set it to localhost in case host is undefined while the latter is going to do that for any falsy value.
There was a problem hiding this comment.
It's not strict equal but doesn't break CI. Should I revert it?
There was a problem hiding this comment.
I would prefer it if we reverted this change, or at least the part with localhost, other changes LGTM
There was a problem hiding this comment.
Is there consensus that changes like this are desirable? It's not obvious to me that destructuring is better (or worse) than the existing straightforward assignment in this case.
There was a problem hiding this comment.
Umm... It's just personal preference. I'm free to revert it.
There was a problem hiding this comment.
@Trott I just guessed that you do not block this and it is author-ready. If that is not the case, please remove the label again.
61c8535 to
c43fca8CompareBridgeAR
commented
May 28, 2018
apapirovski
commented
Jun 1, 2018
Landed in a69a29d |
PR-URL: #20959 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #20959 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes