From 43915a7c751db3a366413da0ba8d84e94e203617 Mon Sep 17 00:00:00 2001 From: David Rautert Date: Tue, 25 Mar 2014 17:12:28 +0000 Subject: [PATCH] Changed == to === when checking against null --- lib/pollers/http/baseHttpPoller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pollers/http/baseHttpPoller.js b/lib/pollers/http/baseHttpPoller.js index 507a06a77..81d71c1b8 100644 --- a/lib/pollers/http/baseHttpPoller.js +++ b/lib/pollers/http/baseHttpPoller.js @@ -56,7 +56,7 @@ BaseHttpPoller.prototype.onResponseCallback = function(res) { if (statusCode.match(/3\d{2}/)) { return this.handleRedirectResponse(res); // abstract, see implementations in http and https } - if (statusCode.match(/2\d{2}/) == null) { + if (statusCode.match(/2\d{2}/) === null) { return this.handleErrorResponse(res); } this.handleOkResponse(res);