mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) eslint-plugin-putout: one-line-destructuring
This commit is contained in:
parent
90cec0169f
commit
d93875b751
41 changed files with 83 additions and 236 deletions
|
|
@ -3,9 +3,7 @@
|
|||
const rendy = require('rendy/legacy');
|
||||
const currify = require('currify/legacy');
|
||||
const store = require('fullstore/legacy');
|
||||
const {
|
||||
encode
|
||||
} = require('./entity');
|
||||
const {encode} = require('./entity');
|
||||
const btoa = require('./btoa');
|
||||
|
||||
const getHeaderField = currify(_getHeaderField);
|
||||
|
|
@ -44,9 +42,7 @@ module.exports.getTitle = (options) => {
|
|||
options = options || {};
|
||||
|
||||
const path = options.path || Path();
|
||||
const {
|
||||
name
|
||||
} = options;
|
||||
const {name} = options;
|
||||
|
||||
const array = [
|
||||
name || NAME,
|
||||
|
|
@ -122,9 +118,7 @@ module.exports.buildFromJSON = (params) => {
|
|||
|
||||
const path = encode(json.path);
|
||||
|
||||
const {
|
||||
files
|
||||
} = json;
|
||||
const {files} = json;
|
||||
|
||||
const sort = params.sort || 'name';
|
||||
const order = params.order || 'asc';
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
|
||||
const test = require('supertape');
|
||||
const cloudfunc = require('./cloudfunc');
|
||||
const {
|
||||
_getSize,
|
||||
} = cloudfunc;
|
||||
const {_getSize} = cloudfunc;
|
||||
|
||||
test('cloudfunc: getSize: dir', (t) => {
|
||||
const type = 'directory';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue