mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(cloudcmd) lint: no-paren
This commit is contained in:
parent
669f412869
commit
aaeb90372e
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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}`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue