From: Rich Trott Date: Fri, 19 Feb 2016 07:12:51 +0000 (-0800) Subject: debugger: remove unneeded callback check X-Git-Tag: v4.4.1~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57b02e6a3e97a86919435aeff624f35c5284bdb5;p=platform%2Fupstream%2Fnodejs.git 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 --- diff --git a/lib/_debugger.js b/lib/_debugger.js index bd655ff..5ce1b16 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; });