chore(cloudcmd) putout: convert-apply-to-spread

This commit is contained in:
coderaiser 2019-02-27 20:53:02 +02:00
parent 3175d8ab47
commit 16e0b19df7
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ const config = require('../config');
const datetime = require('../../common/datetime');
const log = (name, msg) => config('log') && console.log(`${datetime()} -> ${name}: ${msg}`);
const makeColor = (a, color) => chalk.rgb.apply(chalk, color || stringToRGB(a))(a);
const makeColor = (a, color) => chalk.rgb(...(color || stringToRGB(a)))(a);
const getMessage = (e) => e.message || e;
const getDescription = (e) => `${e.type}: ${e.description}`;