From 41872781f906e84c3694f639d4fbe99c5eb68b22 Mon Sep 17 00:00:00 2001 From: Lyubomir Marinov Date: Mon, 25 Jan 2016 11:15:49 -0600 Subject: [PATCH] Fixes a lint error about a constructor name not starting with an uppercase letter. --- modules/config/BoshAddressChoice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/config/BoshAddressChoice.js b/modules/config/BoshAddressChoice.js index b2a16eb99..a2d24b550 100644 --- a/modules/config/BoshAddressChoice.js +++ b/modules/config/BoshAddressChoice.js @@ -1,4 +1,4 @@ -var jssha = require('jssha'); +var JSSHA = require('jssha'); module.exports = { /** @@ -16,7 +16,7 @@ module.exports = { // This implements the actual choice of an entry in the list based on // roomName. Please consider the implications for existing deployments // before introducing changes. - var hash = (new jssha(roomName, 'TEXT')).getHash('SHA-1', 'HEX'); + var hash = (new JSSHA(roomName, 'TEXT')).getHash('SHA-1', 'HEX'); var n = parseInt("0x"+hash.substr(-6)); var idx = n % config.boshList.length; var attemptFirstAddress;