mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Enable tsconfig noUncheckedIndexedAccess
Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user