[console.js] Use const instead of let
This commit is contained in:
parent
b7fc059dbe
commit
9a22935f0e
1 changed files with 4 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue