From f55926a1f03a0127b7bf40c39a6dd5bc79f77a65 Mon Sep 17 00:00:00 2001 From: Minwoo Jung Date: Wed, 26 Aug 2015 21:17:52 +0900 Subject: [PATCH] debugger: use strict equality comparison There is no type-conversion to be done. Therefore, use the === operator. PR-URL: https://github.com/nodejs/node/pull/2558 Reviewed-By: Rich Trott --- lib/_debugger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index b042df554ffdc1..9f8fa26f2189c3 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -173,7 +173,7 @@ Client.prototype._addHandle = function(desc) { this.handles[desc.handle] = desc; - if (desc.type == 'script') { + if (desc.type === 'script') { this._addScript(desc); } };