diff --git a/src/server/command/ssh.ts b/src/server/command/ssh.ts index 50f0cb3..c7ad0df 100644 --- a/src/server/command/ssh.ts +++ b/src/server/command/ssh.ts @@ -6,13 +6,8 @@ export default function sshOptions( { pass, path, command, host, port, auth, knownhosts }: { [s: string]: string }, key?: string ): string[] { - let hostChecking; const cmd = parseCommand(command, path); - if (knownhosts !== '/dev/null') { - hostChecking = 'yes'; - } else { - hostChecking = 'no'; - } + const hostChecking = (knownhosts !== '/dev/null') ? 'yes' : 'no' const sshRemoteOptsBase = [ 'ssh', host,