Enable tsconfig noUncheckedIndexedAccess

Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-16 12:20:58 -05:00
committed by GitHub
parent 279a69f3b3
commit 5684e0d0aa
311 changed files with 2146 additions and 1589 deletions

View File

@@ -47,7 +47,8 @@ export async function createProxyAgent(proxyUrl: string): Promise<ProxyAgent> {
// SOCKS 4/5 resolve target host before sending it to the proxy.
if (host !== proxyHost) {
const idx = Math.floor(Math.random() * addresses.length);
return addresses[idx];
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
return addresses[idx]!;
}
const start = Date.now();