From 9de42505ff367312d5f0dee352bf3d5f04a5045f Mon Sep 17 00:00:00 2001 From: chughts Date: Sun, 21 May 2017 21:57:36 +0100 Subject: [PATCH] code cleansing --- utilities/tone-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/tone-utils.js b/utilities/tone-utils.js index 3f83610d..7b56205f 100644 --- a/utilities/tone-utils.js +++ b/utilities/tone-utils.js @@ -41,7 +41,7 @@ ToneUtils.prototype = { // Function that checks the payload and determines // whether it is JSON or a Buffer checkPayload: function(payload) { - var message = null; + var message = null, isJSON = this.isJsonString(payload) || this.isJsonObject(payload); // Payload (text to be analysed) must be a string (content is either raw string or Buffer)