From a36bbfba2c5f70b265395323f1e60dcabfbfcb15 Mon Sep 17 00:00:00 2001 From: Kyle Lucy Date: Tue, 16 Jun 2020 14:02:05 -0400 Subject: [PATCH] declare hostChecking at top of function --- src/server/command/ssh.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/command/ssh.ts b/src/server/command/ssh.ts index bc75aab..a453f9a 100644 --- a/src/server/command/ssh.ts +++ b/src/server/command/ssh.ts @@ -6,11 +6,12 @@ export default function sshOptions( { pass, path, command, host, port, auth, knownhosts }: { [s: string]: string }, key?: string ): string[] { + var hostChecking; const cmd = parseCommand(command, path); if (knownhosts !== '/dev/null') { - var hostChecking = 'yes'; + hostChecking = 'yes'; } else { - var hostChecking = 'no'; + hostChecking = 'no'; } const sshRemoteOptsBase = [ 'ssh',