From 9d78fca8708422af4009ee6fbcb971fd430a8405 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Tue, 7 Oct 2025 23:32:40 -0500 Subject: [PATCH] Fix duplicated code --- src/backend/database/routes/ssh.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/backend/database/routes/ssh.ts b/src/backend/database/routes/ssh.ts index cf75f4f0..ca153157 100644 --- a/src/backend/database/routes/ssh.ts +++ b/src/backend/database/routes/ssh.ts @@ -1239,14 +1239,6 @@ async function resolveHostCredentials(host: any): Promise { }; } } - - const result = { ...host }; - if (host.key_password !== undefined) { - if (result.keyPassword === undefined) { - result.keyPassword = host.key_password; - } - delete result.key_password; - } const result = { ...host }; if (host.key_password !== undefined) { if (result.keyPassword === undefined) {