mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 12:39:43 +00:00
fix: resolve oxlint warnings — suppress false positives, remove unused imports (#22687)
This commit is contained in:
parent
bbdbc107ae
commit
f7d4665e40
80 changed files with 82 additions and 106 deletions
|
|
@ -281,7 +281,7 @@ async function assertOpencodeConnected() {
|
|||
})
|
||||
connected = true
|
||||
break
|
||||
} catch (e) {}
|
||||
} catch {}
|
||||
await sleep(300)
|
||||
} while (retry++ < 30)
|
||||
|
||||
|
|
@ -561,7 +561,7 @@ async function subscribeSessionEvents() {
|
|||
if (evt.properties.info.id !== session.id) continue
|
||||
session = evt.properties.info
|
||||
}
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// Ignore parse errors
|
||||
}
|
||||
}
|
||||
|
|
@ -576,7 +576,7 @@ async function subscribeSessionEvents() {
|
|||
async function summarize(response: string) {
|
||||
try {
|
||||
return await chat(`Summarize the following in less than 40 characters:\n\n${response}`)
|
||||
} catch (e) {
|
||||
} catch {
|
||||
if (isScheduleEvent()) {
|
||||
return "Scheduled task changes"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue