From 395d736b9d34014e8612172a6517cbcdc2389489 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 ed71c668f316b7..518f8ee28a9a76 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); } };