From 3b82a0b099035722ff2ac9fbd465be1175989a45 Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Thu, 9 Oct 2025 18:53:13 +0800 Subject: [PATCH] fix: remove unused variables in tunnel.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed 5 unused variables: - Removed unused data parameter from stdout event handler - Removed hasSourcePassword, hasSourceKey, hasEndpointPassword, hasEndpointKey variables 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/backend/ssh/tunnel.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/backend/ssh/tunnel.ts b/src/backend/ssh/tunnel.ts index 361555ce..335f84f3 100644 --- a/src/backend/ssh/tunnel.ts +++ b/src/backend/ssh/tunnel.ts @@ -837,7 +837,7 @@ async function connectSSHTunnel( } }); - stream.stdout?.on("data", (data: Buffer) => { + stream.stdout?.on("data", () => { // Silently consume stdout data }); @@ -1439,14 +1439,6 @@ async function initializeAutoStartTunnels(): Promise { isPinned: host.pin, }; - const hasSourcePassword = host.autostartPassword; - const hasSourceKey = host.autostartKey; - const hasEndpointPassword = - tunnelConnection.endpointPassword || - endpointHost.autostartPassword; - const hasEndpointKey = - tunnelConnection.endpointKey || endpointHost.autostartKey; - autoStartTunnels.push(tunnelConfig); } else { tunnelLogger.error(