From 27934d9f2ebf91ae093cc74531bf216ea032e31f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 6 Jul 2019 11:13:09 +0200 Subject: [PATCH] Standarizing Variable Names --- Commons.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Commons.js b/Commons.js index 4b127b3db..7a1b97ae5 100644 --- a/Commons.js +++ b/Commons.js @@ -362,16 +362,16 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { } } - let channel = getElement(bollingerChannelsArray, candle.begin, candle.end); - let subChannel = getElement(bollingerSubChannelsArray, candle.begin, candle.end); + let bollingerChannel = getElement(bollingerChannelsArray, candle.begin, candle.end); + let bollingerSubChannel = getElement(bollingerSubChannelsArray, candle.begin, candle.end); let lastObjects = { candle: clone(candle), //LRC: clone(LRC), bollingerBand: clone(bollingerBand), percentageBandwidth: clone(percentageBandwidth), - channel: clone(channel), - subChannel: clone(subChannel) + bollingerChannel: clone(bollingerChannel), + bollingerSubChannel: clone(bollingerSubChannel) } function clone(obj) { @@ -387,8 +387,8 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { //lastObjects.LRC.previous = undefined; lastObjects.bollingerBand.previous = undefined; lastObjects.percentageBandwidth.previous = undefined; - lastObjects.channel.previous = undefined; - lastObjects.subChannel.previous = undefined; + lastObjects.bollingerChannel.previous = undefined; + lastObjects.bollingerSubChannel.previous = undefined; lastObjectsArray.push(lastObjects);