mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
chore(cloudcmd) lint: convert forEach to for-of
This commit is contained in:
parent
6d69cd3a48
commit
fd6d384ba2
9 changed files with 25 additions and 24 deletions
|
|
@ -206,12 +206,12 @@ async function onChange(el) {
|
|||
}
|
||||
|
||||
function onSave(obj) {
|
||||
Object.keys(obj).forEach((name) => {
|
||||
for (const name of Object.keys(obj)) {
|
||||
const data = obj[name];
|
||||
|
||||
CloudCmd._config(name, data);
|
||||
input.setValue(name, data, Element);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
async function saveHttp(obj) {
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ function download(type) {
|
|||
if (!files.length)
|
||||
return alertNoFiles();
|
||||
|
||||
files.forEach((file) => {
|
||||
for (const file of files) {
|
||||
const selected = DOM.isSelected(file);
|
||||
const isDir = DOM.isCurrentIsDir(file);
|
||||
const path = DOM.getCurrentPath(file);
|
||||
|
|
@ -302,7 +302,7 @@ function download(type) {
|
|||
|
||||
if (selected)
|
||||
DOM.toggleSelectedFile(file);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function getCurrentPosition() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue