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 <info@bnoordhuis.nl>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and jasnell committed Feb 19, 2016
1 parent 210e65a commit c9d7b75
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 @@ -568,7 +568,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 c9d7b75

Please sign in to comment.