mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(release): satisfy lint for beta preflight
This commit is contained in:
@@ -62,7 +62,7 @@ describe("iMessage monitor attachment policy", () => {
|
||||
const client = {
|
||||
request: vi.fn(async () => ({ subscription: 1 })),
|
||||
waitForClose: vi.fn(async () => {
|
||||
onNotification?.({
|
||||
void onNotification?.({
|
||||
method: "message",
|
||||
params: {
|
||||
message: {
|
||||
|
||||
@@ -311,11 +311,11 @@ async function assertMediaContentLength(params: {
|
||||
}
|
||||
|
||||
async function discardIgnoredResponseBody(res: Response): Promise<void> {
|
||||
const cancelBody = res.body?.cancel;
|
||||
if (typeof cancelBody !== "function") {
|
||||
const body = res.body;
|
||||
if (!body) {
|
||||
return;
|
||||
}
|
||||
await cancelBody.call(res.body).catch(() => undefined);
|
||||
await body.cancel().catch(() => undefined);
|
||||
}
|
||||
|
||||
function resolveRemoteFileName(params: {
|
||||
|
||||
@@ -223,11 +223,11 @@ export async function fetchWithGuard(params: {
|
||||
}
|
||||
|
||||
async function discardIgnoredResponseBody(response: Response): Promise<void> {
|
||||
const cancelBody = response.body?.cancel;
|
||||
if (typeof cancelBody !== "function") {
|
||||
const body = response.body;
|
||||
if (!body) {
|
||||
return;
|
||||
}
|
||||
await cancelBody.call(response.body).catch(() => undefined);
|
||||
await body.cancel().catch(() => undefined);
|
||||
}
|
||||
|
||||
function decodeTextContent(buffer: Buffer, charset: string | undefined): string {
|
||||
|
||||
Reference in New Issue
Block a user