Skip to content

Commit cca91c7

Browse files
fix: remove spurious async from playContextQuery in queue.js (task-338)
Removes async keyword from playContextQuery; the body has no await and directly returns the tauriInvoke Promise. Fixes deno lint require-await error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 66f8dde commit cca91c7

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

app/frontend/js/api/queue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export const queue = {
150150
* @param {boolean} shuffle - Whether to shuffle the queue
151151
* @returns {Promise<{items: Array, current_index: number, track: Object, shuffle_enabled: boolean, duration_ms: number}>}
152152
*/
153-
async playContextQuery(startTrackId, queryParams, shuffle) {
153+
playContextQuery(startTrackId, queryParams, shuffle) {
154154
return tauriInvoke('queue_play_context_query', {
155155
startTrackId,
156156
search: queryParams.search ?? null,
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
22
id: TASK-338
33
title: 'fix: remove spurious async from playContextQuery in queue.js'
4-
status: To Do
4+
status: Done
55
assignee: []
66
created_date: '2026-04-29 19:53'
7+
updated_date: '2026-04-29 19:55'
78
labels:
89
- bug
910
- lint
1011
dependencies: []
1112
priority: low
13+
ordinal: 6500
1214
---
1315

1416
## Description
@@ -19,6 +21,12 @@ priority: low
1921

2022
## Acceptance Criteria
2123
<!-- AC:BEGIN -->
22-
- [ ] #1 deno lint passes with no require-await error in queue.js
23-
- [ ] #2 task lint passes
24+
- [x] #1 deno lint passes with no require-await error in queue.js
25+
- [x] #2 task lint passes
2426
<!-- AC:END -->
27+
28+
## Final Summary
29+
30+
<!-- SECTION:FINAL_SUMMARY:BEGIN -->
31+
Removed spurious `async` keyword from `playContextQuery` in `app/frontend/js/api/queue.js:153`. The function body had no `await` — it directly returns the Promise from `tauriInvoke`. Deno lint `require-await` error is resolved.
32+
<!-- SECTION:FINAL_SUMMARY:END -->

0 commit comments

Comments
 (0)