fix: remove unused variables in tunnel.ts

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 <noreply@anthropic.com>
This commit is contained in:
ZacharyZcR
2025-10-09 18:53:13 +08:00
parent a7086aa0a8
commit 3b82a0b099

View File

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