From 9a22935f0e190b2e1ff1ee0af17a09ad8118259c Mon Sep 17 00:00:00 2001 From: Christoph Diehl Date: Tue, 2 May 2017 17:26:49 +0300 Subject: [PATCH] [console.js] Use const instead of let --- lib/logging/console.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/logging/console.js b/lib/logging/console.js index 46e362a..1de6c8e 100644 --- a/lib/logging/console.js +++ b/lib/logging/console.js @@ -6,18 +6,15 @@ var websocket = null var logger = (function () { // eslint-disable-line no-unused-vars const sep = '\n/* ### NEXT TESTCASE ############################## */' - - let color = { + const color = { red: '\u0033[1;31m', green: '\u0033[1;32m', clear: '\u0033[0m' } if (utils.platform.isWindows) { - color = { - red: '', - green: '', - clear: '' - } + color.red = '' + color.green = '' + color.clear = '' } function console (msg) {