From 3fd601bda4b3ce861b01ef7fa0117227eb5e6776 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 7 Jul 2016 17:56:54 +0100 Subject: [PATCH] Use === --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 834f740c0..239395584 100644 --- a/lib/client.js +++ b/lib/client.js @@ -2801,7 +2801,7 @@ MatrixClient.prototype.register = function(username, password, MatrixClient.prototype.requestRegisterEmailToken = function(email, clientSecret, sendAttempt, nextLink, callback) { var id_server_url = url.parse(this.idBaseUrl); - if (id_server_url.host == null) { + if (id_server_url.host === null) { throw new Error("Invalid ID server URL: " + this.idBaseUrl); }