Skip to content

Commit

Permalink
debugger: remove unneeded callback check
Browse files Browse the repository at this point in the history
In `lib/_debugger.js`, remove check for `cb` in line 571 as it is
guaranteed to be truthy due to line 521.

PR-URL: #5319
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Trott authored and rvagg committed Feb 21, 2016
1 parent c55bb79 commit af07484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {

waitForOthers();
function waitForOthers() {
if (--waiting === 0 && cb) {
if (--waiting === 0) {
keyValues.forEach(function(kv) {
mirror[kv.name] = kv.value;
});
Expand Down

0 comments on commit af07484

Please sign in to comment.