Skip to content

Commit

Permalink
[squash] use Object.values()
Browse files Browse the repository at this point in the history
  • Loading branch information
starkwang committed Jul 12, 2019
1 parent 3d0ec30 commit 73da794
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/_http_agent.js
Expand Up @@ -341,9 +341,8 @@ Agent.prototype.destroy = function destroy() {
};

function destroySockets(sockets) {
for (const setKey in sockets) {
const setName = sockets[setKey];
for (const socket of setName) {
for (const set of Object.values(sockets)) {
for (const socket of set) {
socket.destroy();
}
}
Expand Down

0 comments on commit 73da794

Please sign in to comment.