chore(cloudcmd) eslint-plugin-putout: one-line-destructuring

This commit is contained in:
coderaiser 2019-02-01 15:38:18 +02:00
parent 90cec0169f
commit d93875b751
41 changed files with 83 additions and 236 deletions

View file

@ -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';

View file

@ -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';