fix(release): satisfy lint for beta preflight

This commit is contained in:
Peter Steinberger
2026-05-28 21:28:16 +01:00
parent 2be9eb1e97
commit a661506b0f
3 changed files with 7 additions and 7 deletions

View File

@@ -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: {

View File

@@ -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: {

View File

@@ -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 {