Skip to content

Commit af07484

Browse files
Trottrvagg
authored andcommitted
debugger: remove unneeded callback check
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>
1 parent c55bb79 commit af07484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_debugger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
567567

568568
waitForOthers();
569569
function waitForOthers() {
570-
if (--waiting === 0 && cb) {
570+
if (--waiting === 0) {
571571
keyValues.forEach(function(kv) {
572572
mirror[kv.name] = kv.value;
573573
});

0 commit comments

Comments
 (0)