Skip to content

Commit

Permalink
Changed == to === when checking against null
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrautert committed Mar 25, 2014
1 parent 8978873 commit 43915a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pollers/http/baseHttpPoller.js
Expand Up @@ -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);
Expand Down

0 comments on commit 43915a7

Please sign in to comment.