From b3e35690b8519f7f641580dbc19f6579c4ee3263 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 18 Feb 2016 23:12:51 -0800 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/5319 Reviewed-By: Ben Noordhuis Reviewed-By: Evan Lucas Reviewed-By: James M Snell --- lib/_debugger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index bd655ff45c7b2a..5ce1b16960b0ef 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -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; });