fix(release): satisfy lint for beta preflight · openclaw/openclaw@a661506
steipete
·
2026-05-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -62,7 +62,7 @@ describe("iMessage monitor attachment policy", () => {
|
62 | 62 | const client = { |
63 | 63 | request: vi.fn(async () => ({ subscription: 1 })), |
64 | 64 | waitForClose: vi.fn(async () => { |
65 | | -onNotification?.({ |
| 65 | +void onNotification?.({ |
66 | 66 | method: "message", |
67 | 67 | params: { |
68 | 68 | message: { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -311,11 +311,11 @@ async function assertMediaContentLength(params: {
|
311 | 311 | } |
312 | 312 | |
313 | 313 | async function discardIgnoredResponseBody(res: Response): Promise<void> { |
314 | | -const cancelBody = res.body?.cancel; |
315 | | -if (typeof cancelBody !== "function") { |
| 314 | +const body = res.body; |
| 315 | +if (!body) { |
316 | 316 | return; |
317 | 317 | } |
318 | | -await cancelBody.call(res.body).catch(() => undefined); |
| 318 | +await body.cancel().catch(() => undefined); |
319 | 319 | } |
320 | 320 | |
321 | 321 | function resolveRemoteFileName(params: { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -223,11 +223,11 @@ export async function fetchWithGuard(params: {
|
223 | 223 | } |
224 | 224 | |
225 | 225 | async function discardIgnoredResponseBody(response: Response): Promise<void> { |
226 | | -const cancelBody = response.body?.cancel; |
227 | | -if (typeof cancelBody !== "function") { |
| 226 | +const body = response.body; |
| 227 | +if (!body) { |
228 | 228 | return; |
229 | 229 | } |
230 | | -await cancelBody.call(response.body).catch(() => undefined); |
| 230 | +await body.cancel().catch(() => undefined); |
231 | 231 | } |
232 | 232 | |
233 | 233 | function decodeTextContent(buffer: Buffer, charset: string | undefined): string { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。