mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: lint
This commit is contained in:
parent
907afc6e4a
commit
ddd1722f39
7 changed files with 24 additions and 31 deletions
|
|
@ -248,14 +248,12 @@ module.exports.buildFromJSON = (params) => {
|
|||
return fileTable;
|
||||
};
|
||||
|
||||
function updateField(file) {
|
||||
return {
|
||||
...file,
|
||||
date: file.date || '--.--.----',
|
||||
owner: file.owner || 'root',
|
||||
size: getSize(file),
|
||||
};
|
||||
}
|
||||
const updateField = (file) => ({
|
||||
...file,
|
||||
date: file.date || '--.--.----',
|
||||
owner: file.owner || 'root',
|
||||
size: getSize(file),
|
||||
});
|
||||
|
||||
function getAttribute(type) {
|
||||
if (type === 'directory')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue