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 <thechargingvolcano@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
yorkie authored and Fishrock123 committed Oct 11, 2016
1 parent 6dbda6a commit e1a774d
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 e1a774d

Please sign in to comment.