mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) putout: convert-apply-to-spread
This commit is contained in:
parent
3175d8ab47
commit
16e0b19df7
2 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ function EventsProto() {
|
|||
checkType(type);
|
||||
|
||||
parseArgs(type, element, listener, (element, args) => {
|
||||
element.removeEventListener.apply(element, args);
|
||||
element.removeEventListener(...args);
|
||||
});
|
||||
|
||||
return Events;
|
||||
|
|
|
|||
|
|
@ -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}`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue