From c9d7b753469e63bee13badff16ed6dbfb9222e6c 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 ed5573aff43621..7ec91d1e002c22 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -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; });