From 0fd248d065634e2b4ecef2a9db23c3ea5a59666c Mon Sep 17 00:00:00 2001 From: dsh-ci-bot Date: Thu, 12 Nov 2026 00:56:28 +0800 Subject: [PATCH] fix(ci): keep the verified-download spec within the line budget The acquire helper's inline return type grew past the 140-column lint limit when the env parameter was added; name the result type instead. --- scripts/ci-verified-download.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/ci-verified-download.spec.ts b/scripts/ci-verified-download.spec.ts index e3aba625b1..493a4a0d7d 100644 --- a/scripts/ci-verified-download.spec.ts +++ b/scripts/ci-verified-download.spec.ts @@ -63,7 +63,13 @@ function createFixture(served?: Buffer): Fixture { return { root, cacheDir, cacheFile: join(cacheDir, 'payload.deb'), curlLog, env } } -function acquire(fixture: Fixture, env: NodeJS.ProcessEnv = fixture.env): { status: number | null; signal: NodeJS.Signals | null; stderr: string } { +interface AcquireResult { + readonly status: number | null + readonly signal: NodeJS.Signals | null + readonly stderr: string +} + +function acquire(fixture: Fixture, env: NodeJS.ProcessEnv = fixture.env): AcquireResult { const result = spawnSync( bash, ['-c', 'set -euo pipefail; source "$1"; acquire_verified_archive "$2" "$3" "$4"', 'acquire', library, url, payloadSha256, fixture.cacheFile],