Fix duplicated code

This commit is contained in:
LukeGus
2025-10-07 23:32:40 -05:00
parent 1f614abcfc
commit 9d78fca870

View File

@@ -1239,14 +1239,6 @@ async function resolveHostCredentials(host: any): Promise<any> {
};
}
}
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) {