diff options
| author | Kit Langton <[email protected]> | 2026-04-15 21:56:23 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-15 21:56:23 -0400 |
| commit | d6b14e24678db678163c281257322c5a9bf0e6fa (patch) | |
| tree | f3681988691b203ed5d766f47c9efb5af4f48beb /packages/function/src/api.ts | |
| parent | 66257663509bc12bb208c4c65f73c45206106aae (diff) | |
| download | opencode-d6b14e24678db678163c281257322c5a9bf0e6fa.tar.gz opencode-d6b14e24678db678163c281257322c5a9bf0e6fa.zip | |
fix: prefix 32 unused parameters with underscore (#22694)
Diffstat (limited to 'packages/function/src/api.ts')
| -rw-r--r-- | packages/function/src/api.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/function/src/api.ts b/packages/function/src/api.ts index 54b93ad71..d6565b287 100644 --- a/packages/function/src/api.ts +++ b/packages/function/src/api.ts @@ -49,9 +49,9 @@ export class SyncServer extends DurableObject<Env> { }) } - async webSocketMessage(ws, message) {} + async webSocketMessage(_ws, _message) {} - async webSocketClose(ws, code, reason, wasClean) { + async webSocketClose(ws, code, _reason, _wasClean) { ws.close(code, "Durable Object is closing WebSocket") } |
