[lint] Enforce @typescript-eslint/no-floating-promises (#3402)

This commit is contained in:
Chenlei Hu
2025-04-11 12:19:22 -04:00
committed by GitHub
parent 59e20964a0
commit dc5d7ea1be
60 changed files with 305 additions and 279 deletions

View File

@@ -157,11 +157,11 @@ const toggleExpanded = () => {
isExpanded.value = !isExpanded.value
}
const removeTask = (task: TaskItemImpl) => {
const removeTask = async (task: TaskItemImpl) => {
if (task.isRunning) {
api.interrupt()
await api.interrupt()
}
queueStore.delete(task)
await queueStore.delete(task)
}
const removeAllTasks = async () => {
@@ -251,8 +251,11 @@ const exitFolderView = () => {
folderTask.value = null
}
const toggleImageFit = () => {
settingStore.set(IMAGE_FIT, imageFit.value === 'cover' ? 'contain' : 'cover')
const toggleImageFit = async () => {
await settingStore.set(
IMAGE_FIT,
imageFit.value === 'cover' ? 'contain' : 'cover'
)
}
watch(allTasks, () => {