mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
69c8eecaf1
commit
3ba6d4ae53
7 changed files with 10 additions and 20 deletions
|
|
@ -253,12 +253,7 @@ function getAttribute(type) {
|
|||
}
|
||||
|
||||
module.exports._getSize = getSize;
|
||||
function getSize(file) {
|
||||
const {
|
||||
size,
|
||||
type,
|
||||
} = file;
|
||||
|
||||
function getSize({size, type}) {
|
||||
if (type === 'directory')
|
||||
return '<dir>';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue