chore: format
This commit is contained in:
parent
f346d2e2f6
commit
46bf02cdd5
1 changed files with 18 additions and 13 deletions
|
@ -1034,22 +1034,23 @@ function deleteDraft() {
|
|||
resolve(false);
|
||||
return;
|
||||
}
|
||||
const comment =
|
||||
result.result.length === 0 ? null : result.result;
|
||||
const comment = result.result.length === 0 ? null : result.result;
|
||||
os.api("drive/files/update", {
|
||||
fileId: file.id,
|
||||
comment,
|
||||
}).then(() => {
|
||||
})
|
||||
.then(() => {
|
||||
resolve(true);
|
||||
file.comment = comment;
|
||||
}).catch((err: unknown) => {
|
||||
})
|
||||
.catch((err: unknown) => {
|
||||
reject(err);
|
||||
});
|
||||
},
|
||||
},
|
||||
"closed",
|
||||
);
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
async function post() {
|
||||
|
@ -1101,7 +1102,9 @@ async function post() {
|
|||
}
|
||||
isFirstPostAttempt = false;
|
||||
// Continue if all files have alt-text added.
|
||||
if (files.value.some((f) => f.comment == null || f.comment.length === 0)) {
|
||||
if (
|
||||
files.value.some((f) => f.comment == null || f.comment.length === 0)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1130,7 +1133,9 @@ async function post() {
|
|||
}
|
||||
}
|
||||
// Continue if all files have alt-text added.
|
||||
if (files.value.some((f) => f.comment == null || f.comment.length === 0)) {
|
||||
if (
|
||||
files.value.some((f) => f.comment == null || f.comment.length === 0)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue