chore(cloudcmd) lint: no-paren

This commit is contained in:
coderaiser 2019-06-11 13:30:38 +03:00
parent 669f412869
commit aaeb90372e
3 changed files with 3 additions and 3 deletions

View file

@ -92,7 +92,7 @@ function show(position, panel) {
current = refreshButton.parentElement;
}
if (!parent || (parent && parent !== current))
if (!parent || parent && parent !== current)
current.appendChild(image);
DOM.show(image);

View file

@ -105,7 +105,7 @@ module.exports.put = (url, body) => {
if (!event.lengthComputable)
return;
const percent = (event.loaded / event.total) * 100;
const percent = event.loaded / event.total * 100;
const count = Math.round(percent);
emitter.emit('progress', count);

View file

@ -6,7 +6,7 @@ const chalk = require('chalk');
const datetime = require('../../common/datetime');
const log = (isLog, name, msg) => isLog && console.log(`${datetime()} -> ${name}: ${msg}`);
const makeColor = (a, color) => chalk.rgb(...(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}`;