Skip to content

Commit

Permalink
dns: remove internal variable from makeAsync
Browse files Browse the repository at this point in the history
PR-URL: #8800
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
yorkie committed Sep 30, 2016
1 parent 560a589 commit 7bc6aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function makeAsync(callback) {
} else {
var args = new Array(arguments.length + 1);
args[0] = callback;
for (var i = 1, a = 0; a < arguments.length; ++i, ++a)
args[i] = arguments[a];
for (var i = 0; i < arguments.length; ++i)
args[i + 1] = arguments[i];
process.nextTick.apply(null, args);
}
};
Expand Down

0 comments on commit 7bc6aea

Please sign in to comment.