mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-03 13:13:10 +00:00
chore: lint
This commit is contained in:
parent
f1279666b5
commit
4717e035ee
173 changed files with 1388 additions and 1627 deletions
|
|
@ -15,6 +15,7 @@ const {log} = CloudCmd;
|
|||
const upload = currify(_upload);
|
||||
|
||||
const Name = 'Cloud';
|
||||
|
||||
CloudCmd[Name] = module.exports;
|
||||
|
||||
module.exports.init = async () => {
|
||||
|
|
@ -41,10 +42,7 @@ module.exports.saveFile = (callback) => {
|
|||
};
|
||||
|
||||
function _upload(callback, file) {
|
||||
const {
|
||||
url,
|
||||
filename,
|
||||
} = file;
|
||||
const {url, filename} = file;
|
||||
|
||||
const responseType = 'arraybuffer';
|
||||
const success = exec.with(callback, filename);
|
||||
|
|
@ -64,4 +62,3 @@ function loadFiles() {
|
|||
load.js(js),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue